]> Pileus Git - ~andy/gtk/blobdiff - gdk/x11/gdkevents-x11.c
Separate out tracking of the X server focus window from tracking our idea
[~andy/gtk] / gdk / x11 / gdkevents-x11.c
index 9cce1afc437f6cd692a6a48090492cf9cac4381e..f0e44e8b06db4f6b55209a2560d4c3148a67bc06 100644 (file)
@@ -1242,11 +1242,11 @@ gdk_event_translate (GdkDisplay *display,
            case NotifyNonlinear:
            case NotifyVirtual:
            case NotifyNonlinearVirtual:
+             window_impl->has_focus_window = TRUE;
              /* We pretend that the focus moves to the grab
               * window, so we pay attention to NotifyGrab
               * NotifyUngrab, and ignore NotifyWhileGrabbed
               */
-             window_impl->has_focus_window = TRUE;
              if (xevent->xfocus.mode != NotifyWhileGrabbed)
                window_impl->has_focus = TRUE;
              break;