diff options
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 661db1b62e7..359ea209021 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -83,6 +83,12 @@ # include "BLI_threads.h" #endif +/** + * When windows are activated, simulate modifier press/release to match the current state of + * held modifier keys, see T40317. + */ +#define USE_WIN_ACTIVATE + /* the global to talk to ghost */ static GHOST_SystemHandle g_system = NULL; @@ -1115,11 +1121,6 @@ static bool ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr C_void_pt } wmWindow *win = GHOST_GetWindowUserData(ghostwin); - /* Win23/GHOST modifier bug, see T40317 */ -#ifndef WIN32 -//# define USE_WIN_ACTIVATE -#endif - switch (type) { case GHOST_kEventWindowDeactivate: wm_event_add_ghostevent(wm, win, type, data); |