use the RootWindow of this screen for gdk_window_get_pointer.

2002-06-07  Mark McLoughlin  <mark@skynet.ie>

        * gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
        the RootWindow of this screen for gdk_window_get_pointer.
This commit is contained in:
Mark McLoughlin 2002-06-07 02:05:01 +00:00 committed by Mark McLoughlin
parent 91745dfecd
commit 4c547ec4e3
7 changed files with 32 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-07 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
the RootWindow of this screen for gdk_window_get_pointer.
2002-06-06 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set

View File

@ -1,3 +1,8 @@
2002-06-07 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
the RootWindow of this screen for gdk_window_get_pointer.
2002-06-06 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set

View File

@ -1,3 +1,8 @@
2002-06-07 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
the RootWindow of this screen for gdk_window_get_pointer.
2002-06-06 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set

View File

@ -1,3 +1,8 @@
2002-06-07 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
the RootWindow of this screen for gdk_window_get_pointer.
2002-06-06 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set

View File

@ -1,3 +1,8 @@
2002-06-07 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
the RootWindow of this screen for gdk_window_get_pointer.
2002-06-06 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set

View File

@ -1,3 +1,8 @@
2002-06-07 Mark McLoughlin <mark@skynet.ie>
* gtk/gtkwindow.c: (gtk_window_compute_configure_request): use
the RootWindow of this screen for gdk_window_get_pointer.
2002-06-06 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Set

View File

@ -4183,7 +4183,8 @@ gtk_window_compute_configure_request (GtkWindow *window,
gint screen_height = gdk_screen_get_height (window->screen);
int px, py;
gdk_window_get_pointer (NULL, &px, &py, NULL);
gdk_window_get_pointer (gdk_screen_get_root_window (window->screen),
&px, &py, NULL);
x = px - w / 2;
y = py - h / 2;
x = CLAMP (x, 0, screen_width - w);