diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-02-18 10:47:53 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-02-18 10:47:53 +0100 |
commit | ed7cfcb6aa19e726991231ec9616e38e45556bdc (patch) | |
tree | 616ea21259994c05295887010033ad46f822a552 | |
parent | 85bd47e42f6212d8af25d26fb5497fa7755e3f2b (diff) |
Add openbox to the naughty list
-rw-r--r-- | include/x11-helper.h | 4 | ||||
-rw-r--r-- | source/dialogs/window.c | 2 | ||||
-rw-r--r-- | source/x11-helper.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/include/x11-helper.h b/include/x11-helper.h index a40fde88..8fc4db12 100644 --- a/include/x11-helper.h +++ b/include/x11-helper.h @@ -269,7 +269,9 @@ typedef enum { /** I3 Window manager */ WM_I3 = 1, /** Awesome window manager */ - WM_AWESOME = 2 + WM_AWESOME = 2, + /** Openbox window manager */ + WM_OPENBOX = 4 } WindowManager; /** diff --git a/source/dialogs/window.c b/source/dialogs/window.c index 4171ad2f..2980270e 100644 --- a/source/dialogs/window.c +++ b/source/dialogs/window.c @@ -578,7 +578,7 @@ static ModeMode window_mode_result ( Mode *sw, int mretv, G_GNUC_UNUSED char **i } else { rofi_view_hide (); - if ( current_window_manager == WM_AWESOME ) + if ( (current_window_manager&(WM_AWESOME|WM_OPENBOX)) != 0 ) { // Get the desktop of the client to switch to uint32_t wmdesktop = 0; diff --git a/source/x11-helper.c b/source/x11-helper.c index be06aca0..6f044fb0 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -941,6 +941,8 @@ void x11_helper_discover_window_manager ( void ) current_window_manager = WM_I3; } else if ( g_strcmp0 ( wtitle.strings, "awesome" ) == 0 ){ current_window_manager = WM_AWESOME; + } else if ( g_strcmp0 ( wtitle.strings, "openbox" ) == 0 ){ + current_window_manager = WM_OPENBOX; } } xcb_ewmh_get_utf8_strings_reply_wipe(&wtitle); |