From 7b7cd3f48b52cbfb3591a61e43c40492c2ac3a72 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 12 May 2018 01:28:56 +0200 Subject: pluma-notebook.c: avoid deprecated 'gdk_window_at_pointer' --- pluma/pluma-notebook.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.1