summaryrefslogtreecommitdiff
path: root/src/meta/display.h
diff options
context:
space:
mode:
authorArmin Krezović <krezovic.armin@gmail.com>2017-08-26 21:39:46 +0200
committerJonas Ådahl <jadahl@gmail.com>2018-07-06 19:47:16 +0200
commitb7c3dada81eec424662caab621d86788597aaa83 (patch)
tree21d0ad4176a275974e2826f8979f0173b2231d59 /src/meta/display.h
parentd79ffd3976e2efa6570deabfd46620f5b4f254be (diff)
downloadmutter-b7c3dada81eec424662caab621d86788597aaa83.tar.gz
Move workspace handling to MetaDisplay and MetaX11Display
https://bugzilla.gnome.org/show_bug.cgi?id=759538
Diffstat (limited to 'src/meta/display.h')
-rw-r--r--src/meta/display.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/meta/display.h b/src/meta/display.h
index 50366cbff..aa263066f 100644
--- a/src/meta/display.h
+++ b/src/meta/display.h
@@ -208,4 +208,46 @@ int meta_display_get_monitor_neighbor_index (MetaDisplay *display,
int which_monitor,
MetaDisplayDirection dir);
+GList *meta_display_get_workspaces (MetaDisplay *display);
+
+int meta_display_get_n_workspaces (MetaDisplay *display);
+
+MetaWorkspace* meta_display_get_workspace_by_index (MetaDisplay *display,
+ int index);
+void meta_display_remove_workspace (MetaDisplay *display,
+ MetaWorkspace *workspace,
+ guint32 timestamp);
+
+MetaWorkspace *meta_display_append_new_workspace (MetaDisplay *display,
+ gboolean activate,
+ guint32 timestamp);
+
+int meta_display_get_active_workspace_index (MetaDisplay *display);
+
+MetaWorkspace *meta_display_get_active_workspace (MetaDisplay *display);
+
+void meta_display_focus_default_window (MetaDisplay *display,
+ guint32 timestamp);
+
+/**
+ * MetaDisplayCorner:
+ * @META_DISPLAY_TOPLEFT: top-left corner
+ * @META_DISPLAY_TOPRIGHT: top-right corner
+ * @META_DISPLAY_BOTTOMLEFT: bottom-left corner
+ * @META_DISPLAY_BOTTOMRIGHT: bottom-right corner
+ */
+typedef enum
+{
+ META_DISPLAY_TOPLEFT,
+ META_DISPLAY_TOPRIGHT,
+ META_DISPLAY_BOTTOMLEFT,
+ META_DISPLAY_BOTTOMRIGHT
+} MetaDisplayCorner;
+
+void meta_display_override_workspace_layout (MetaDisplay *display,
+ MetaDisplayCorner starting_corner,
+ gboolean vertical_layout,
+ int n_rows,
+ int n_columns);
+
#endif