diff options
author | Elijah Newren <newren@math.utah.edu> | 2004-10-17 04:28:29 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2004-10-17 04:28:29 +0000 |
commit | e84778d1ebd2b8714dd9ff5d1db4d7138597ed8b (patch) | |
tree | 1c2c9a9c7d5a5aa8e1666698b7ae96ca856091bb /src/workspace.h | |
parent | e6fe44061289a20ea170cbd70cc299775db5242c (diff) | |
download | metacity-e84778d1ebd2b8714dd9ff5d1db4d7138597ed8b.tar.gz |
Make the "showing desktop" mode be per-workspace instead of per-screen.
2004-10-16 Elijah Newren <newren@math.utah.edu>
Make the "showing desktop" mode be per-workspace instead of
per-screen. (fixes #142198)
* src/keybindings.c (handle_toggle_desktop): access
showing_desktop through the active workspace
* src/screen.c (meta_screen_new): remove initialization of
screen->showing_desktop,
(meta_screen_update_showing_desktop_hint): rename and make not
static and access showing_desktop through the active workspace,
(queue_windows_showing): replace meta_display_list_windows() with
screen->active_workspace->windows,
(meta_screen_minimize_all_on_active_workspace_except): renamed
from meta_screen_minimize_all_except since it now only works on
the active workspace, (meta_screen_show_desktop,
meta_screen_unshow_desktop): access showing_desktop through the
active workspace
* src/screen.h (struct _MetaScreen): remove showing_desktop field,
(meta_screen_minimize_all_on_active_workspace_except): rename from
meta_screen_minimize_all_except,
(meta_screen_update)_showing_desktop_hint): export this function too
* src/window.c (maybe_leave_show_desktop_mode): access
showing_desktop through the active workspace and use new name for
meta_screen_minimize_all_on_active_workspace_except,
(window_should_be_showing): access showing_desktop through the
active workspace
* src/workspace.c (meta_workspace_new): initialize
workspace->showing_desktop, (meta_workspace_activate_with_focus):
add note that old can be NULL, update showing_desktop_hint if
different on this workspace than the previous one
* src/workspace.h (struct _MetaWorkspace): add showing_desktop
field
Diffstat (limited to 'src/workspace.h')
-rw-r--r-- | src/workspace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/workspace.h b/src/workspace.h index 018d1dfb..403a73ea 100644 --- a/src/workspace.h +++ b/src/workspace.h @@ -49,6 +49,8 @@ struct _MetaWorkspace GSList *top_struts; GSList *bottom_struts; guint work_areas_invalid : 1; + + guint showing_desktop : 1; }; MetaWorkspace* meta_workspace_new (MetaScreen *screen); |