From 4642216f70dd98134a79f9299b7ca4bc876649c7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 28 Aug 2016 00:36:53 -0700 Subject: *: 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. --- src/context.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/context.h (limited to 'src/context.h') 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 -- cgit v1.2.3