From 6d5ffca0765fc1dfa3a5392fcd0661394e4b881a Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 18 Feb 2014 21:41:22 -0500 Subject: [PATCH] Set no_focusable for "notification" and "tooltip" windows Notification popups, and tooltips for that matter, shouldn't be taking focus away from apps the user is actually interacting with. --- src/wmspec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wmspec.c b/src/wmspec.c index 779a9efc..46351f23 100644 --- a/src/wmspec.c +++ b/src/wmspec.c @@ -1204,6 +1204,7 @@ static Bool handleWindowType(WWindow *wwin, Atom type, int *layer) wwin->client_flags.skip_switchpanel = 1; wwin->client_flags.dont_move_off = 1; wwin->client_flags.no_appicon = 1; + wwin->client_flags.no_focusable = 1; wwin->flags.net_skip_pager = 1; } else if (wwin->type == net_wm_window_type_notification) { wwin->client_flags.no_titlebar = 1; @@ -1219,6 +1220,7 @@ static Bool handleWindowType(WWindow *wwin, Atom type, int *layer) wwin->client_flags.dont_move_off = 1; wwin->client_flags.no_hide_others= 1; wwin->client_flags.no_appicon = 1; + wwin->client_flags.no_focusable = 1; wwin->flags.net_skip_pager = 1; } else if (wwin->type == net_wm_window_type_dnd) { wwin->client_flags.no_titlebar = 1; -- 2.11.4.GIT