mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
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.
This commit is contained in:
committed by
Carlos R. Mafra
parent
ae0cc1427f
commit
6d5ffca076
@@ -1204,6 +1204,7 @@ static Bool handleWindowType(WWindow *wwin, Atom type, int *layer)
|
|||||||
wwin->client_flags.skip_switchpanel = 1;
|
wwin->client_flags.skip_switchpanel = 1;
|
||||||
wwin->client_flags.dont_move_off = 1;
|
wwin->client_flags.dont_move_off = 1;
|
||||||
wwin->client_flags.no_appicon = 1;
|
wwin->client_flags.no_appicon = 1;
|
||||||
|
wwin->client_flags.no_focusable = 1;
|
||||||
wwin->flags.net_skip_pager = 1;
|
wwin->flags.net_skip_pager = 1;
|
||||||
} else if (wwin->type == net_wm_window_type_notification) {
|
} else if (wwin->type == net_wm_window_type_notification) {
|
||||||
wwin->client_flags.no_titlebar = 1;
|
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.dont_move_off = 1;
|
||||||
wwin->client_flags.no_hide_others= 1;
|
wwin->client_flags.no_hide_others= 1;
|
||||||
wwin->client_flags.no_appicon = 1;
|
wwin->client_flags.no_appicon = 1;
|
||||||
|
wwin->client_flags.no_focusable = 1;
|
||||||
wwin->flags.net_skip_pager = 1;
|
wwin->flags.net_skip_pager = 1;
|
||||||
} else if (wwin->type == net_wm_window_type_dnd) {
|
} else if (wwin->type == net_wm_window_type_dnd) {
|
||||||
wwin->client_flags.no_titlebar = 1;
|
wwin->client_flags.no_titlebar = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user