Skip to content
Permalink
Browse files

pluma-notebook.c: avoid deprecated 'gdk_window_at_pointer'

  • Loading branch information...
sc0w authored and lukefromdc committed May 11, 2018
1 parent 0bc141e commit 7b7cd3f48b52cbfb3591a61e43c40492c2ac3a72
Showing with 6 additions and 1 deletion.
  1. +6 −1 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 */

0 comments on commit 7b7cd3f

Please sign in to comment.
You can’t perform that action at this time.