From c3865215748013b03fbe7ad8ba4a939b38636c0b Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 11 Feb 2017 16:53:37 +0100 Subject: Add an window manager detection function to startup. current_window_manager now is an enum of known window managers. --- include/x11-helper.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include') 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 -- cgit v1.2.3