display: Use XInput2 to grab the pointer

As calling XIGrabDevice multiple times will change it, just
drop the XChangeActivePointerGrab path and just go down the
XIGrabPointer path always.

https://bugzilla.gnome.org/show_bug.cgi?id=688779
This commit is contained in:
Jasper St. Pierre
2012-11-20 17:08:31 -05:00
parent c90765370d
commit c1b8e0ac8f
3 changed files with 30 additions and 56 deletions

View File

@@ -9867,9 +9867,8 @@ meta_window_update_keyboard_resize (MetaWindow *window,
if (update_cursor)
{
meta_display_set_grab_op_cursor (window->display,
NULL,
window->screen,
window->display->grab_op,
TRUE,
window->display->grab_xwindow,
window->display->grab_timestamp);
}