mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
c8e3b52160
commit
41de208f31
@ -379,6 +379,12 @@ meta_begin_modal_for_plugin (MetaCompositor *compositor,
|
|||||||
if (is_modal (display) || display->grab_op != META_GRAB_OP_NONE)
|
if (is_modal (display) || display->grab_op != META_GRAB_OP_NONE)
|
||||||
return FALSE;
|
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))
|
if (!grab_devices (options, timestamp))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user