summaryrefslogtreecommitdiffstats
path: root/source/x11-helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-04 19:41:06 +0100
committerDave Davenport <qball@gmpclient.org>2017-03-04 19:41:06 +0100
commit3f4d58ef531a17d6667318a4e8f9390a383ffab6 (patch)
tree29aa6b8bd7c7420a236b3be2fd62404889d8ee53 /source/x11-helper.c
parent8ee37012d1b55e69a66fb88727b14c284b6a367f (diff)
Indent code.
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r--source/x11-helper.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c
index f372e0ef..4b5dea57 100644
--- a/source/x11-helper.c
+++ b/source/x11-helper.c
@@ -55,7 +55,6 @@
/** Log domain for this module */
#define LOG_DOMAIN "X11Helper"
-
WindowManager current_window_manager = WM_EWHM;
/**
@@ -926,26 +925,27 @@ void x11_disable_decoration ( xcb_window_t window )
void x11_helper_discover_window_manager ( void )
{
- xcb_window_t wm_win = 0;
+ xcb_window_t wm_win = 0;
xcb_get_property_cookie_t cc = xcb_ewmh_get_supporting_wm_check_unchecked ( &xcb->ewmh,
- xcb_stuff_get_root_window ( xcb ) );
+ xcb_stuff_get_root_window ( xcb ) );
if ( xcb_ewmh_get_supporting_wm_check_reply ( &xcb->ewmh, cc, &wm_win, NULL ) ) {
xcb_ewmh_get_utf8_strings_reply_t wtitle;
- xcb_get_property_cookie_t cookie = xcb_ewmh_get_wm_name_unchecked(&(xcb->ewmh), wm_win );
- if ( xcb_ewmh_get_wm_name_reply(&(xcb->ewmh), cookie, &wtitle, (void *)0))
- {
- if ( wtitle.strings_len > 0 ){
+ xcb_get_property_cookie_t cookie = xcb_ewmh_get_wm_name_unchecked ( &( xcb->ewmh ), wm_win );
+ if ( xcb_ewmh_get_wm_name_reply ( &( xcb->ewmh ), cookie, &wtitle, (void *) 0 ) ) {
+ if ( wtitle.strings_len > 0 ) {
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Found window manager: %s", wtitle.strings );
- if ( g_strcmp0(wtitle.strings, "i3") == 0 ){
+ if ( g_strcmp0 ( wtitle.strings, "i3" ) == 0 ) {
current_window_manager = WM_I3;
- } else if ( g_strcmp0 ( wtitle.strings, "awesome" ) == 0 ){
+ }
+ else if ( g_strcmp0 ( wtitle.strings, "awesome" ) == 0 ) {
current_window_manager = WM_AWESOME;
- } else if ( g_strcmp0 ( wtitle.strings, "Openbox" ) == 0 ){
+ }
+ else if ( g_strcmp0 ( wtitle.strings, "Openbox" ) == 0 ) {
current_window_manager = WM_OPENBOX;
}
}
- xcb_ewmh_get_utf8_strings_reply_wipe(&wtitle);
+ xcb_ewmh_get_utf8_strings_reply_wipe ( &wtitle );
}
}
}