summaryrefslogtreecommitdiff
path: root/src/screen.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-10-16 20:12:24 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-10-16 20:12:24 +0000
commit337812d51dd50ce7bae0cf5fd7abbab07eb856ec (patch)
tree6d8e4104a483ace10540be4d1938d7c7a60f8052 /src/screen.h
parent17ac646f705d1de1b12b346658924dfe44e955c2 (diff)
downloadmetacity-337812d51dd50ce7bae0cf5fd7abbab07eb856ec.tar.gz
workspaces are all per-screen now, fix accordingly
2002-10-16 Havoc Pennington <hp@redhat.com> * src/workspace.c: workspaces are all per-screen now, fix accordingly * src/core.c: fix multihead workspace stuff * src/keybindings.c: multihead-rama * src/screen.c (meta_screen_show_desktop): new functions to replace display equivalents * src/display.c (meta_display_get_workspace_by_screen_index): get rid of this (meta_display_get_workspace_by_index): get rid of this (event_callback): handle _NET_SHOWING_DESKTOP message per-screen * src/screen.c (meta_screen_get_workspace_by_index): new function * src/screen.h (struct _MetaScreen): move workspace list, and showing_desktop flag, to be per-screen * src/window.c (window_query_root_pointer): return whether pointer is on window's screen (meta_window_handle_mouse_grab_op_event): don't use coordinates from other screens when updating a window operation on the current screen. I can't believe no one has reported this...
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/screen.h b/src/screen.h
index ffcb40f1..a5811b63 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -64,6 +64,8 @@ struct _MetaScreen
MetaWorkspace *active_workspace;
+ GList *workspaces;
+
MetaStack *stack;
MetaCursor current_cursor;
@@ -87,7 +89,8 @@ struct _MetaScreen
guint keys_grabbed : 1;
guint all_keys_grabbed : 1;
-
+ guint showing_desktop : 1;
+
int closing;
};
@@ -104,6 +107,9 @@ void meta_screen_queue_window_resizes (MetaScreen *scre
int meta_screen_get_n_workspaces (MetaScreen *screen);
+MetaWorkspace* meta_screen_get_workspace_by_index (MetaScreen *screen,
+ int index);
+
void meta_screen_set_cursor (MetaScreen *screen,
MetaCursor cursor);
@@ -136,4 +142,9 @@ void meta_screen_resize (MetaScreen *screen,
int height);
+/* Show/hide the desktop (temporarily hide all windows) */
+void meta_screen_show_desktop (MetaScreen *screen);
+void meta_screen_unshow_desktop (MetaScreen *screen);
+
+
#endif