From 052e8cc8e2d4734a37f58a910d1e05219bfcaaea Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 2 Aug 2011 01:44:10 +0200 Subject: [PATCH] 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 file changed, 6 insertions(+) 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