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:
@@ -387,7 +387,6 @@ static WMArray *makeWindowListArray(WWindow *curwin, int include_unmapped, Bool
|
|||||||
for (fl = 0; fl < 2; fl++) {
|
for (fl = 0; fl < 2; fl++) {
|
||||||
for (wwin = curwin; wwin; wwin = wwin->prev) {
|
for (wwin = curwin; wwin; wwin = wwin->prev) {
|
||||||
if (((!fl && canReceiveFocus(wwin) > 0) || (fl && canReceiveFocus(wwin) < 0)) &&
|
if (((!fl && canReceiveFocus(wwin) > 0) || (fl && canReceiveFocus(wwin) < 0)) &&
|
||||||
(!WFLAGP(wwin, skip_window_list) || wwin->flags.internal_window) &&
|
|
||||||
(wwin->flags.mapped || include_unmapped)) {
|
(wwin->flags.mapped || include_unmapped)) {
|
||||||
if (class_only) {
|
if (class_only) {
|
||||||
if (!wwin->wm_class || !curwin->wm_class)
|
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) {
|
for (wwin = curwin; wwin && wwin != curwin; wwin = wwin->prev) {
|
||||||
if (((!fl && canReceiveFocus(wwin) > 0) || (fl && canReceiveFocus(wwin) < 0)) &&
|
if (((!fl && canReceiveFocus(wwin) > 0) || (fl && canReceiveFocus(wwin) < 0)) &&
|
||||||
(!WFLAGP(wwin, skip_window_list) || wwin->flags.internal_window) &&
|
|
||||||
(wwin->flags.mapped || include_unmapped)) {
|
(wwin->flags.mapped || include_unmapped)) {
|
||||||
if (class_only) {
|
if (class_only) {
|
||||||
if (!wwin->wm_class || !curwin->wm_class)
|
if (!wwin->wm_class || !curwin->wm_class)
|
||||||
|
|||||||
Reference in New Issue
Block a user