summaryrefslogtreecommitdiff
path: root/src/screen.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:20:28 -0700
committerGitHub <noreply@github.com>2016-09-09 14:20:28 -0700
commita1aba8e0fe5c94ebf04258b609666c92b756954f (patch)
treefe9792b77766e31728b1d2d04d2461858ef45443 /src/screen.h
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
parent8ef5fccc1ad2f5acb5530a438de631153e4ad945 (diff)
Merge pull request #6 from vcaputo/clean_house
House cleaning
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/screen.h b/src/screen.h
new file mode 100644
index 0000000..c8b7531
--- /dev/null
+++ b/src/screen.h
@@ -0,0 +1,19 @@
+#ifndef _SCREEN_H
+#define _SCREEN_H
+
+#include <X11/extensions/Xinerama.h> /* XINERAMA extension, facilitates easy multihead awareness */
+
+typedef struct _vwm_t vwm_t;
+
+typedef XineramaScreenInfo vwm_screen_t; /* conveniently reuse the xinerama type for describing screens */
+
+typedef enum _vwm_screen_rel_t {
+ VWM_SCREEN_REL_XWIN, /* return the screen the supplied window most resides in */
+ VWM_SCREEN_REL_POINTER, /* return the screen the pointer resides in */
+ VWM_SCREEN_REL_TOTAL, /* return the bounding rectangle of all screens as one */
+} vwm_screen_rel_t;
+
+const vwm_screen_t * vwm_screen_find(vwm_t *vwm, vwm_screen_rel_t rel, ...);
+int vwm_screen_is_empty(vwm_t *vwm, const vwm_screen_t *scr);
+
+#endif
© All Rights Reserved