From e84778d1ebd2b8714dd9ff5d1db4d7138597ed8b Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Sun, 17 Oct 2004 04:28:29 +0000 Subject: Make the "showing desktop" mode be per-workspace instead of per-screen. 2004-10-16 Elijah Newren 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 --- src/workspace.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/workspace.h') 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); -- cgit v1.2.1