diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkwindow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 70ff43b46..104be1c2f 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -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); |