summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-08-02 01:44:10 +0200
committerJasper St. Pierre <jstpierre@mecheye.net>2012-11-03 19:47:37 -0400
commit052e8cc8e2d4734a37f58a910d1e05219bfcaaea (patch)
tree84cdcfac15a873f7b79217c4c6ed3bf3fa996005
parent827999aa8281558e9b44077baff39822167e2378 (diff)
downloadmutter-wip/xinput2r.tar.gz
frame: disallow frame operations if the popup is openwip/xinput2r
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 3713ef5a9..32edc51cd 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