Resolves: rhbz#1417480 stray bare XWarpPointer call in gtk3 code

which blows up under wayland naturally

can get here from tools->options->mouse positioning->"dialog center"
table->insert table

Change-Id: Id81b06a63cc3a2a1073d236e2f36dc65e533e598
This commit is contained in:
Caolán McNamara 2017-01-30 09:13:21 +00:00
parent f15b444966
commit b4b989b59c

View File

@ -2154,9 +2154,9 @@ void GtkSalFrame::SetPointerPos( long nX, long nY )
unsigned int nWindowLeft = maGeometry.nX + nX;
unsigned int nWindowTop = maGeometry.nY + nY;
XWarpPointer( GDK_DISPLAY_XDISPLAY (pDisplay), None,
GDK_WINDOW_XID (gdk_screen_get_root_window( pScreen ) ),
0, 0, 0, 0, nWindowLeft, nWindowTop);
GdkDeviceManager* pManager = gdk_display_get_device_manager(pDisplay);
gdk_device_warp(gdk_device_manager_get_client_pointer(pManager), pScreen, nWindowLeft, nWindowTop);
// #i38648# ask for the next motion hint
gint x, y;
GdkModifierType mask;