mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
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.
This commit is contained in:
parent
b93c72315d
commit
eac32fb142
@ -247,6 +247,12 @@ meta_frame_get_flags (MetaFrame *frame)
|
|||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
|
||||||
|
/* Disallow frame operations
|
||||||
|
* while the popup menu is open.
|
||||||
|
*/
|
||||||
|
if (frame->window->menu)
|
||||||
|
return flags;
|
||||||
|
|
||||||
if (frame->window->border_only)
|
if (frame->window->border_only)
|
||||||
{
|
{
|
||||||
; /* FIXME this may disable the _function_ as well as decor
|
; /* FIXME this may disable the _function_ as well as decor
|
||||||
|
Loading…
Reference in New Issue
Block a user