[mutter] compositor: Also ungrab the VCP when beginning a modal



commit 41de208f31a403813fc9ac7550d71b91df0c3b80
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Apr 24 11:16:55 2014 -0400

    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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index a1ee527..f74173d 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]