Separate out tracking of the X server focus window from tracking our idea
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.)
This commit is contained in:
@ -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>
|
Tue Dec 10 12:57:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
||||||
|
|||||||
@ -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>
|
Tue Dec 10 12:57:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
||||||
|
|||||||
@ -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>
|
Tue Dec 10 12:57:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
||||||
|
|||||||
@ -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>
|
Tue Dec 10 12:57:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
||||||
|
|||||||
@ -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>
|
Tue Dec 10 12:57:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
||||||
|
|||||||
@ -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>
|
Tue Dec 10 12:57:00 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
* gtk/gtkclist.c (adjust_adjustments): Fix typo with
|
||||||
|
|||||||
@ -1242,11 +1242,11 @@ gdk_event_translate (GdkDisplay *display,
|
|||||||
case NotifyNonlinear:
|
case NotifyNonlinear:
|
||||||
case NotifyVirtual:
|
case NotifyVirtual:
|
||||||
case NotifyNonlinearVirtual:
|
case NotifyNonlinearVirtual:
|
||||||
|
window_impl->has_focus_window = TRUE;
|
||||||
/* We pretend that the focus moves to the grab
|
/* We pretend that the focus moves to the grab
|
||||||
* window, so we pay attention to NotifyGrab
|
* window, so we pay attention to NotifyGrab
|
||||||
* NotifyUngrab, and ignore NotifyWhileGrabbed
|
* NotifyUngrab, and ignore NotifyWhileGrabbed
|
||||||
*/
|
*/
|
||||||
window_impl->has_focus_window = TRUE;
|
|
||||||
if (xevent->xfocus.mode != NotifyWhileGrabbed)
|
if (xevent->xfocus.mode != NotifyWhileGrabbed)
|
||||||
window_impl->has_focus = TRUE;
|
window_impl->has_focus = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -73,11 +73,11 @@ struct _GdkWindowImplX11
|
|||||||
|
|
||||||
GdkXPositionInfo position_info;
|
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;
|
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;
|
guint has_focus : 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user