summaryrefslogtreecommitdiff
path: root/openbox/screen.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-10 06:18:47 +0000
committerDana Jansens <danakj@orodu.net>2003-07-10 06:18:47 +0000
commit276b2be581c6cb138b439537761ff2ca42201805 (patch)
tree753038e7990b881a2bc0e525fab1ebc45b2523e3 /openbox/screen.h
parent6357583c396382dd6ed8ac42004177f204fabe62 (diff)
add misc.h with some standard enumerations with proper prefixing and capitalizations.
use the new enums throughout. provide keycodes and cursors through ob_cursor and ob_keycode functions, which use the new misc.h enums for picking the cursor and keycode.
Diffstat (limited to 'openbox/screen.h')
-rw-r--r--openbox/screen.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/openbox/screen.h b/openbox/screen.h
index 42e3dc17..b68f6ea5 100644
--- a/openbox/screen.h
+++ b/openbox/screen.h
@@ -1,6 +1,7 @@
#ifndef __screen_h
#define __screen_h
+#include "misc.h"
#include "geom.h"
#include "client.h"
@@ -17,15 +18,9 @@ extern guint screen_desktop;
/*! Are we in showing-desktop mode? */
extern gboolean screen_showing_desktop;
-/*! Orientation of the desktops */
-typedef enum {
- Orientation_Horz = 0,
- Orientation_Vert = 1
-} Orientation;
-
typedef struct DesktopLayout {
- Orientation orientation;
- Corner start_corner;
+ ObOrientation orientation;
+ ObCorner start_corner;
guint rows;
guint columns;
} DesktopLayout;