]> git.armaanb.net Git - dwm.git/blobdiff - dwm.c
Do not allow focus to drift from fullscreen client via focusstack()
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 9fd02862ca58529cf4f07cc4d3469e2b43a532b8..b0b3466881b84872a6b261cc1ed42afed08ac3bd 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -440,7 +440,7 @@ buttonpress(XEvent *e)
                        arg.ui = 1 << i;
                } else if (ev->x < x + blw)
                        click = ClkLtSymbol;
-               else if (ev->x > selmon->ww - TEXTW(stext))
+               else if (ev->x > selmon->ww - (int)TEXTW(stext))
                        click = ClkStatusText;
                else
                        click = ClkWinTitle;
@@ -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);