mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
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:
parent
4ed8b114b8
commit
1b1f852086
@ -1493,12 +1493,14 @@ meta_seat_x11_warp_pointer (ClutterSeat *seat,
|
||||
{
|
||||
MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat);
|
||||
|
||||
clutter_x11_trap_x_errors ();
|
||||
XIWarpPointer (clutter_x11_get_default_display (),
|
||||
seat_x11->pointer_id,
|
||||
None,
|
||||
clutter_x11_get_root_window (),
|
||||
0, 0, 0, 0,
|
||||
x, y);
|
||||
clutter_x11_untrap_x_errors ();
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
|
Loading…
Reference in New Issue
Block a user