summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-02-11 16:53:37 +0100
committerDave Davenport <qball@gmpclient.org>2017-02-11 16:53:37 +0100
commitc3865215748013b03fbe7ad8ba4a939b38636c0b (patch)
tree416a1acf33d8ff9fd011efb9a9b74c33a344ccf0 /include
parent98c625feab597454166880b58bfbcb92b1b0f25f (diff)
Add an window manager detection function to startup.
current_window_manager now is an enum of known window managers.
Diffstat (limited to 'include')
-rw-r--r--include/x11-helper.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/x11-helper.h b/include/x11-helper.h
index 7f37899d..4c915da5 100644
--- a/include/x11-helper.h
+++ b/include/x11-helper.h
@@ -260,5 +260,26 @@ int x11_modifier_active ( unsigned int mask, int key );
* (Set MOTIF_WM_HINTS, decoration field)
*/
void x11_disable_decoration ( xcb_window_t window );
+
+
+typedef enum {
+ /** Default EWHM compatible window manager */
+ WM_EWHM,
+ /** I3 Window manager */
+ WM_I3,
+ /** Awesome window manager */
+ WM_AWESOME
+} WindowManager;
+
+/**
+ * Indicates the current window manager.
+ * This is used for work-arounds.
+ */
+extern WindowManager current_window_manager;
+
+/**
+ * discover the window manager.
+ */
+void x11_helper_discover_window_manager ( void );
/*@}*/
#endif