backends/x11: Add traps around XIPointerWarp call

This is left up to higher level code, which is not too nice.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1807>
This commit is contained in:
Carlos Garnacho 2021-03-29 13:52:31 +02:00
parent 4ed8b114b8
commit 1b1f852086

View File

@ -1493,12 +1493,14 @@ meta_seat_x11_warp_pointer (ClutterSeat *seat,
{ {
MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat);
clutter_x11_trap_x_errors ();
XIWarpPointer (clutter_x11_get_default_display (), XIWarpPointer (clutter_x11_get_default_display (),
seat_x11->pointer_id, seat_x11->pointer_id,
None, None,
clutter_x11_get_root_window (), clutter_x11_get_root_window (),
0, 0, 0, 0, 0, 0, 0, 0,
x, y); x, y);
clutter_x11_untrap_x_errors ();
} }
static uint32_t static uint32_t