mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
91745dfecd
commit
4c547ec4e3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user