Skip to content

Commit

Permalink
-d 3 excludes special desktop too
Browse files Browse the repository at this point in the history
for #55
  • Loading branch information
sagb committed Mar 28, 2018
1 parent f0d1cba commit a67ee31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/alttab.1
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Doesn\'t work in ratpoison\.
In various EWMH WM this desktop may be designed hidden or containing sticky windows\. In i3, it\'s "scratchpad"\.
.
.IP
\fI3\fR: All desktops, excluding current one\.
\fI3\fR: All desktops, excluding current and special\.
.
.TP
\fB\-sc\fR \fINUMBER\fR
Expand Down
2 changes: 1 addition & 1 deletion doc/alttab.1.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Most command line options have corresponding X resource, see doc/alttab.ad for e
In various EWMH WM this desktop may be designed hidden
or containing sticky windows. In i3, it's "scratchpad".

<3>: All desktops, excluding current one.
<3>: All desktops, excluding current and special.

* `-sc` <NUMBER>:
resource: alttab.screens
Expand Down
7 changes: 4 additions & 3 deletions src/ewmh.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,11 @@ int ewmh_initWinlist(quad screen)
}
continue;
}
if (g.option_desktop == DESK_NOCURRENT
&& current_desktop == window_desktop) {
if (g.option_desktop == DESK_NOCURRENT &&
(window_desktop == current_desktop ||
window_desktop == -1)) {
if (g.debug > 1) {
fprintf (stderr, "window on current desktop, skipped\n");
fprintf (stderr, "window on current or -1 desktop, skipped\n");
}
continue;
}
Expand Down

0 comments on commit a67ee31

Please sign in to comment.