summaryrefslogtreecommitdiff
path: root/src/workspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/workspace.h')
-rw-r--r--src/workspace.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/workspace.h b/src/workspace.h
index 46439d24..c55af458 100644
--- a/src/workspace.h
+++ b/src/workspace.h
@@ -24,6 +24,17 @@
#include "window.h"
+/* Negative to avoid conflicting with real workspace
+ * numbers
+ */
+typedef enum
+{
+ META_MOTION_UP = -1,
+ META_MOTION_DOWN = -2,
+ META_MOTION_LEFT = -3,
+ META_MOTION_RIGHT = -4
+} MetaMotionDirection;
+
struct _MetaWorkspace
{
MetaScreen *screen;
@@ -55,6 +66,9 @@ void meta_workspace_get_work_area (MetaWorkspace *workspace,
MetaRectangle *area);
+MetaWorkspace* meta_workspace_get_neighbor (MetaWorkspace *workspace,
+ MetaMotionDirection direction);
+
#endif