From 41de208f31a403813fc9ac7550d71b91df0c3b80 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 24 Apr 2014 11:16:55 -0400 Subject: [PATCH] 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. --- src/compositor/compositor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index a1ee527b4..f74173d93 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -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;