summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-08-02 01:44:10 +0200
committerCarlos Garnacho <carlosg@gnome.org>2011-08-02 18:39:33 +0200
commiteac32fb142d7b1c9ad9752e77326df81deadb23b (patch)
tree8f0926cc3b8d1ce987fd4f24c8c6b9bc724670f6
parentb93c72315d2e57fd8d5c3cf1d46b049271781bfa (diff)
downloadmutter-wip/xinput2.tar.gz
frame: disallow frame operations if the popup is openwip/xinput2
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.
-rw-r--r--src/core/frame.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/frame.c b/src/core/frame.c
index 130c03b20..1498e38de 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