summaryrefslogtreecommitdiff
path: root/src/context.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-08-28 00:36:53 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:14:31 -0700
commit4642216f70dd98134a79f9299b7ca4bc876649c7 (patch)
treebdf9fd892bc54a2f2a678a9828c6af9d9fc8bed2 /src/context.h
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
*: refactor all the things
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
new file mode 100644
index 0000000..1604bd3
--- /dev/null
+++ b/src/context.h
@@ -0,0 +1,14 @@
+#ifndef _CONTEXT_H
+#define _CONTEXT_H
+
+typedef struct _vwm_t vwm_t;
+
+typedef enum _vwm_context_t {
+ VWM_CONTEXT_DESKTOP = 0, /* focus the desktop context */
+ VWM_CONTEXT_SHELF, /* focus the shelf context */
+ VWM_CONTEXT_OTHER /* focus the other context relative to the current one */
+} vwm_context_t;
+
+int vwm_context_focus(vwm_t *vwm, vwm_context_t desired_context);
+
+#endif
© All Rights Reserved