mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
switchpanel: Add skip_switchpanel advanced option
Some applications running in my machine are only background windows, e.g.: screenlets showing CPU usage. In current wmaker version all these applications pollute my switchpanel, so I wrote this patch (thanks Carlos for the helping me). It includes an additional advanced option for windows "Do not include in switchpanel" which, if set, allows applications to not appear in the switchpanel. Signed-off-by: Haroldo Santos <haroldo.santos@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
077a2eaa71
commit
c82138eab9
@@ -1101,6 +1101,7 @@ static Bool handleWindowType(WWindow * wwin, Atom type, int *layer)
|
||||
wwin->client_flags.no_movable = 1;
|
||||
wwin->client_flags.omnipresent = 1;
|
||||
wwin->client_flags.skip_window_list = 1;
|
||||
wwin->client_flags.skip_switchpanel = 1;
|
||||
wwin->client_flags.dont_move_off = 1;
|
||||
wwin->client_flags.no_appicon = 1;
|
||||
wwin->flags.net_skip_pager = 1;
|
||||
@@ -1116,6 +1117,7 @@ static Bool handleWindowType(WWindow * wwin, Atom type, int *layer)
|
||||
wwin->client_flags.no_movable = 1;
|
||||
wwin->client_flags.omnipresent = 1;
|
||||
wwin->client_flags.skip_window_list = 1;
|
||||
wwin->client_flags.skip_switchpanel = 1;
|
||||
wwin->client_flags.dont_move_off = 1;
|
||||
wwin->flags.net_skip_pager = 1;
|
||||
} else if (type == net_wm_window_type_toolbar) {
|
||||
@@ -1125,6 +1127,7 @@ static Bool handleWindowType(WWindow * wwin, Atom type, int *layer)
|
||||
wwin->client_flags.no_resizebar = 1;
|
||||
wwin->client_flags.no_shadeable = 1;
|
||||
wwin->client_flags.skip_window_list = 1;
|
||||
wwin->client_flags.skip_switchpanel = 1;
|
||||
wwin->client_flags.dont_move_off = 1;
|
||||
wwin->client_flags.no_appicon = 1;
|
||||
} else if (type == net_wm_window_type_menu) {
|
||||
@@ -1134,6 +1137,7 @@ static Bool handleWindowType(WWindow * wwin, Atom type, int *layer)
|
||||
wwin->client_flags.no_resizebar = 1;
|
||||
wwin->client_flags.no_shadeable = 1;
|
||||
wwin->client_flags.skip_window_list = 1;
|
||||
wwin->client_flags.skip_switchpanel = 1;
|
||||
wwin->client_flags.dont_move_off = 1;
|
||||
wwin->client_flags.no_appicon = 1;
|
||||
} else if (type == net_wm_window_type_utility) {
|
||||
@@ -1146,6 +1150,7 @@ static Bool handleWindowType(WWindow * wwin, Atom type, int *layer)
|
||||
wwin->client_flags.no_shadeable = 1;
|
||||
wwin->client_flags.no_movable = 1;
|
||||
wwin->client_flags.skip_window_list = 1;
|
||||
wwin->client_flags.skip_switchpanel = 1;
|
||||
wwin->client_flags.dont_move_off = 1;
|
||||
wwin->client_flags.no_appicon = 1;
|
||||
wwin->flags.net_skip_pager = 1;
|
||||
|
||||
Reference in New Issue
Block a user