summaryrefslogtreecommitdiff
path: root/pluma/pluma-notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-notebook.c')
-rw-r--r--pluma/pluma-notebook.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c
index f0a36d76..acecc0f4 100644
--- a/pluma/pluma-notebook.c
+++ b/pluma/pluma-notebook.c
@@ -191,10 +191,15 @@ find_notebook_at_pointer (gint abs_x, gint abs_y)
GdkWindow *win_at_pointer;
GdkWindow *toplevel_win;
gpointer toplevel = NULL;
+ GdkSeat *seat;
+ GdkDevice *device;
gint x, y;
/* FIXME multi-head */
- win_at_pointer = gdk_window_at_pointer (&x, &y);
+ seat = gdk_display_get_default_seat (gdk_display_get_default ());
+ device = gdk_seat_get_pointer (seat);
+ win_at_pointer = gdk_device_get_window_at_position (device, &x, &y);
+
if (win_at_pointer == NULL)
{
/* We are outside all windows of the same application */