From a8c6488358b52d831c99ebeedcf96b830d2793a7 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 24 Jun 2022 13:55:05 -0700 Subject: [PATCH] Remove warning --- libs/kiplatform/gtk/ui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/kiplatform/gtk/ui.cpp b/libs/kiplatform/gtk/ui.cpp index b0a39daefe..fc5fdf9114 100644 --- a/libs/kiplatform/gtk/ui.cpp +++ b/libs/kiplatform/gtk/ui.cpp @@ -156,7 +156,9 @@ void KIPLATFORM::UI::WarpPointer( wxWindow* aWindow, int aX, int aY ) else { GdkDisplay* disp = gtk_widget_get_display( static_cast( aWindow->GetHandle() ) ); - GdkWindow* win = gdk_display_get_window_at_pointer( disp, nullptr, nullptr ); + GdkSeat* seat = gdk_display_get_default_seat( disp ); + GdkDevice* dev = gdk_seat_get_pointer( seat ); + GdkWindow* win = gdk_device_get_window_at_position( dev, nullptr, nullptr ); GdkCursor* blank_cursor = gdk_cursor_new_for_display( disp, GDK_BLANK_CURSOR ); GdkCursor* cur_cursor = gdk_window_get_cursor( win );