diff options
author | Pablo Barciela <[email protected]> | 2018-05-12 01:28:56 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-05-13 14:41:35 -0400 |
commit | 7b7cd3f48b52cbfb3591a61e43c40492c2ac3a72 (patch) | |
tree | da74c157df6fb14c47098968bfdd8ccbb4809011 | |
parent | 0bc141e0eeec9a10d119bb504ffea339e82f2350 (diff) | |
download | pluma-7b7cd3f48b52cbfb3591a61e43c40492c2ac3a72.tar.bz2 pluma-7b7cd3f48b52cbfb3591a61e43c40492c2ac3a72.tar.xz |
pluma-notebook.c: avoid deprecated 'gdk_window_at_pointer'
-rw-r--r-- | pluma/pluma-notebook.c | 7 |
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 */ |