http://bugs.winehq.org/show_bug.cgi?id=27403 --- Comment #23 from denis bonnenfant <denis.bonnenfant@diderot.org> --- Created attachment 81197 --> http://bugs.winehq.org/attachment.cgi?id=81197 [PATCH 1/2] winex11.drv: Don't send WM_CANCELMODE for intra-process focus changes. On Windows, WM_CANCELMODE is sent to the foreground window when it loses focus to another application, not when focus moves to another window within the same process. Wine was sending WM_CANCELMODE whenever any X11 FocusOut event arrived for the foreground window, including intra-process focus changes (e.g. when the application itself calls SetActiveWindow on a different window it owns). This caused applications that use WM_CANCELMODE to dismiss popup windows or abort drag operations to incorrectly react to purely internal focus changes. Fix by guarding the WM_CANCELMODE send with is_current_process_focused(): only send it when Wine has actually lost focus to another X11 client. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.