mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
Don't show menu if all options are invalid (fixes #148915)
2004-12-24 Elijah Newren <newren@gmail.com> * src/window.c (meta_window_show_menu): Don't show menu if all options are invalid (fixes #148915)
This commit is contained in:
parent
ce8c2d9463
commit
aab8f21475
@ -1,3 +1,8 @@
|
||||
2004-12-24 Elijah Newren <newren@gmail.com>
|
||||
|
||||
* src/window.c (meta_window_show_menu): Don't show menu if all
|
||||
options are invalid (fixes #148915)
|
||||
|
||||
2004-12-24 Elijah Newren <newren@gmail.com>
|
||||
|
||||
* src/window.c (window_takes_focus_on_map): Fix error in
|
||||
|
@ -5903,6 +5903,12 @@ meta_window_show_menu (MetaWindow *window,
|
||||
(window->type == META_WINDOW_SPLASHSCREEN))
|
||||
insensitive |= META_MENU_OP_ABOVE | META_MENU_OP_UNABOVE;
|
||||
|
||||
/* If all operations are disabled, just quit without showing the menu.
|
||||
* This is the case, for example, with META_WINDOW_DESKTOP windows.
|
||||
*/
|
||||
if ((ops & ~insensitive) == 0)
|
||||
return;
|
||||
|
||||
menu =
|
||||
meta_ui_window_menu_new (window->screen->ui,
|
||||
window->xwindow,
|
||||
|
Loading…
Reference in New Issue
Block a user