[mutter/wip/xinput2] frame: disallow frame operations if the popup is open



commit eac32fb142d7b1c9ad9752e77326df81deadb23b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Aug 2 01:44:10 2011 +0200

    frame: disallow frame operations if the popup is open
    
    If some device has a popped up menu, meta_frame_get_flags()
    returns 0 to indicate other devices cannot trigger any
    actions on the frame.

 src/core/frame.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/core/frame.c b/src/core/frame.c
index 130c03b..1498e38 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -247,6 +247,12 @@ meta_frame_get_flags (MetaFrame *frame)
 
   flags = 0;
 
+  /* Disallow frame operations
+   * while the popup menu is open.
+   */
+  if (frame->window->menu)
+    return flags;
+
   if (frame->window->border_only)
     {
       ; /* FIXME this may disable the _function_ as well as decor



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