mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
Removed "move to another workspace" menu when there are exactly two
2006-02-19 Thomas Thurman <thomas thurman org uk> Removed "move to another workspace" menu when there are exactly two workspaces. Fixes #151183. * src/menu.c (meta_window_menu_new): clear META_MENU_OP_WORKSPACES bit when n_workspaces==2
This commit is contained in:
parent
5a85bf18fe
commit
9e17747f3c
@ -1,3 +1,11 @@
|
||||
2006-02-19 Thomas Thurman <thomas thurman org uk>
|
||||
|
||||
Removed "move to another workspace" menu when there are
|
||||
exactly two workspaces. Fixes #151183.
|
||||
|
||||
* src/menu.c (meta_window_menu_new): clear
|
||||
META_MENU_OP_WORKSPACES bit when n_workspaces==2
|
||||
|
||||
Fri Feb 17 11:56:35 2006 Søren Sandmann <sandmann@redhat.com>
|
||||
|
||||
* src/screen.c (meta_screen_free): Only uncomposite the screen if
|
||||
|
@ -267,6 +267,9 @@ meta_window_menu_new (MetaFrames *frames,
|
||||
|
||||
if (n_workspaces < 2)
|
||||
ops &= ~(META_MENU_OP_STICK | META_MENU_OP_UNSTICK | META_MENU_OP_WORKSPACES);
|
||||
else if (n_workspaces == 2)
|
||||
/* #151183: If we only have two workspaces, disable the menu listing them. */
|
||||
ops &= ~(META_MENU_OP_WORKSPACES);
|
||||
|
||||
menu = g_new (MetaWindowMenu, 1);
|
||||
menu->frames = frames;
|
||||
|
Loading…
Reference in New Issue
Block a user