From fb91e5d67a484853bf1c08bb0ea5a1c43b70b51b Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Thu, 8 Apr 2010 18:15:31 +0200 Subject: [PATCH] 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. --- src/switchpanel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/switchpanel.c b/src/switchpanel.c index 46f5d478..79aad385 100644 --- a/src/switchpanel.c +++ b/src/switchpanel.c @@ -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) -- 2.11.4.GIT