1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Do not skip windows in the switchpanel

If a window has the skip_window_list flag set wmaker currently not only skips
this window from the window list (F11) but also from the switchpanel (TAB).

This patch makes skip_window_list-windows appear in the switchpanel and be
skipped only in the window list, strictly honoring what the name of the flag
is supposed to mean.

The motivation for this is that I have lots of workspaces and almost all of
them has a xterm, so that I set the skip_window_list for the xterms not to
overcrowd the window list. But I still want to alt+TAB to xterms on the current
workspace.

In addition to that, now the "internal window" flag is not checked before
appearing in the switchpanel.
This commit is contained in:
Carlos R. Mafra
2010-04-08 18:15:31 +02:00
parent 08f990a946
commit fb91e5d67a

View File

@@ -387,7 +387,6 @@ static WMArray *makeWindowListArray(WWindow *curwin, int include_unmapped, Bool
for (fl = 0; fl < 2; fl++) {
for (wwin = curwin; wwin; wwin = wwin->prev) {
if (((!fl && canReceiveFocus(wwin) > 0) || (fl && canReceiveFocus(wwin) < 0)) &&
(!WFLAGP(wwin, skip_window_list) || wwin->flags.internal_window) &&
(wwin->flags.mapped || include_unmapped)) {
if (class_only) {
if (!wwin->wm_class || !curwin->wm_class)
@@ -405,7 +404,6 @@ static WMArray *makeWindowListArray(WWindow *curwin, int include_unmapped, Bool
for (wwin = curwin; wwin && wwin != curwin; wwin = wwin->prev) {
if (((!fl && canReceiveFocus(wwin) > 0) || (fl && canReceiveFocus(wwin) < 0)) &&
(!WFLAGP(wwin, skip_window_list) || wwin->flags.internal_window) &&
(wwin->flags.mapped || include_unmapped)) {
if (class_only) {
if (!wwin->wm_class || !curwin->wm_class)