summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2020-07-02 20:18:30 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-03-29 19:16:27 +0200
commit67d76bdc68102df976177de351f65329d8683064 (patch)
tree3d0da7fda5f02f341383dfe3161f4c9625070cca /dwm.c
parent61bb8b2241d4db08bea4261c82e27cd9797099e7 (diff)
Do not allow focus to drift from fullscreen client via focusstack()
It generally doesn't make much sense to allow focusstack() to navigate away from the selected fullscreen client, as you can't even see which client you're selecting behind it. I have had this up for a while on the wiki as a separate patch[0], but it seems reasonable to avoid this behaviour in dwm mainline, since I'm struggling to think of any reason to navigate away from a fullscreen client other than a mistake. 0: https://dwm.suckless.org/patches/alwaysfullscreen/
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 664c527..b0b3466 100644
--- a/dwm.c
+++ b/dwm.c
@@ -835,7 +835,7 @@ focusstack(const Arg *arg)
{
Client *c = NULL, *i;
- if (!selmon->sel)
+ if (!selmon->sel || selmon->sel->isfullscreen)
return;
if (arg->i > 0) {
for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);