compositor: Also ungrab the VCP when beginning a modal

XXX: This should not be needed. We need to figure out why
there's a grab on the UI connection.
This commit is contained in:
Jasper St. Pierre 2014-04-24 11:16:55 -04:00
parent c8e3b52160
commit 41de208f31

View File

@ -379,6 +379,12 @@ meta_begin_modal_for_plugin (MetaCompositor *compositor,
if (is_modal (display) || display->grab_op != META_GRAB_OP_NONE)
return FALSE;
/* XXX: why is this needed? */
XIUngrabDevice (display->xdisplay,
META_VIRTUAL_CORE_POINTER_ID,
timestamp);
XSync (display->xdisplay, False);
if (!grab_devices (options, timestamp))
return FALSE;