]> Pileus Git - ~andy/gtk/commitdiff
Separate out tracking of the X server focus window from tracking our idea
authorOwen Taylor <otaylor@redhat.com>
Tue, 10 Dec 2002 20:06:02 +0000 (20:06 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 10 Dec 2002 20:06:02 +0000 (20:06 +0000)
Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkevents-x11.c (gdk_event_translate)
          gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
          focus window from tracking our idea of what the focus window is,
          because the PointerRoot code needs to know the real pointer
          window. (Mostly accidentally committed a bit earlier.)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkevents-x11.c
gdk/x11/gdkwindow-x11.h

index e074e393a2c642e204f1a925b1f85b7b97fd58a4..6b955edb671199439b28df6c097a091d7b37a6fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate)
+         gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
+         focus window from tracking our idea of what the focus window is,
+         because the PointerRoot code needs to know the real pointer
+         window. (Mostly accidentally committed a bit earlier.)
+
 Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkclist.c (adjust_adjustments): Fix typo with
index e074e393a2c642e204f1a925b1f85b7b97fd58a4..6b955edb671199439b28df6c097a091d7b37a6fc 100644 (file)
@@ -1,3 +1,11 @@
+Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate)
+         gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
+         focus window from tracking our idea of what the focus window is,
+         because the PointerRoot code needs to know the real pointer
+         window. (Mostly accidentally committed a bit earlier.)
+
 Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkclist.c (adjust_adjustments): Fix typo with
index e074e393a2c642e204f1a925b1f85b7b97fd58a4..6b955edb671199439b28df6c097a091d7b37a6fc 100644 (file)
@@ -1,3 +1,11 @@
+Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate)
+         gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
+         focus window from tracking our idea of what the focus window is,
+         because the PointerRoot code needs to know the real pointer
+         window. (Mostly accidentally committed a bit earlier.)
+
 Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkclist.c (adjust_adjustments): Fix typo with
index e074e393a2c642e204f1a925b1f85b7b97fd58a4..6b955edb671199439b28df6c097a091d7b37a6fc 100644 (file)
@@ -1,3 +1,11 @@
+Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate)
+         gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
+         focus window from tracking our idea of what the focus window is,
+         because the PointerRoot code needs to know the real pointer
+         window. (Mostly accidentally committed a bit earlier.)
+
 Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkclist.c (adjust_adjustments): Fix typo with
index e074e393a2c642e204f1a925b1f85b7b97fd58a4..6b955edb671199439b28df6c097a091d7b37a6fc 100644 (file)
@@ -1,3 +1,11 @@
+Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate)
+         gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
+         focus window from tracking our idea of what the focus window is,
+         because the PointerRoot code needs to know the real pointer
+         window. (Mostly accidentally committed a bit earlier.)
+
 Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkclist.c (adjust_adjustments): Fix typo with
index e074e393a2c642e204f1a925b1f85b7b97fd58a4..6b955edb671199439b28df6c097a091d7b37a6fc 100644 (file)
@@ -1,3 +1,11 @@
+Tue Dec 10 14:37:41 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate)
+         gdk/x11/gdkwindow-x11.h: Separate out tracking of the X server
+         focus window from tracking our idea of what the focus window is,
+         because the PointerRoot code needs to know the real pointer
+         window. (Mostly accidentally committed a bit earlier.)
+
 Tue Dec 10 12:57:00 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkclist.c (adjust_adjustments): Fix typo with
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;
index ccf10dde9d787786b6b37f8925d612f7474731ca..72246ebf23839f999ea617fbd96827b843b5fda5 100644 (file)
@@ -73,11 +73,11 @@ struct _GdkWindowImplX11
   
   GdkXPositionInfo position_info;
 
-  /* Set if the window, or any descendent of it, is the focus window
+  /* Set if the window, or any descendent of it, is the server's focus window
    */
   guint has_focus_window : 1;
 
-  /* Set if has_focus_window and the focus isn't grabbed elsewhere.
+  /* Set if window->has_focus_window and the focus isn't grabbed elsewhere.
    */
   guint has_focus : 1;