[mutter/wip/xinput2r: 60/66] frame: disallow frame operations if the popup is open



commit 68aee8f71ca3f6aa4b92e9b0ca993f699c5bb5e1
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 3713ef5..32edc51 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -246,6 +246,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]