diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-03-16 11:34:58 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-03-16 11:34:58 +0100 |
commit | 6d99cdf28c3c34b71faf06fb73cc997bd9e81a39 (patch) | |
tree | 7fa28537204c955ceec655817758964dcaa0517b /gdk/win32 | |
parent | fff1af56ff491a49ae70be8f7c8ad03919cae815 (diff) | |
download | gtk+-6d99cdf28c3c34b71faf06fb73cc997bd9e81a39.tar.gz |
win32: Ensure we update GDK_WINDOW_STATE_FOCUSED
When windows get activated/inactivated we need to update STATE_FOCUSED.
Without this the backdrop theme state will not work.
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 7088600ffe..fc01381f6c 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -3217,6 +3217,11 @@ gdk_event_translate (MSG *msg, break; } + if (LOWORD (msg->wParam) == WA_INACTIVE) + gdk_synthesize_window_state (window, GDK_WINDOW_STATE_FOCUSED, 0); + else + gdk_synthesize_window_state (window, 0, GDK_WINDOW_STATE_FOCUSED); + /* Bring any tablet contexts to the top of the overlap order when * one of our windows is activated. * NOTE: It doesn't seem to work well if it is done in WM_ACTIVATEAPP |