From eac32fb142d7b1c9ad9752e77326df81deadb23b 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 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