On 2014-02-19 21:20:47 +0800, Chris Down wrote:
> On 2014-02-19 14:09:26 +0100, Manolo Martínez wrote:
> > When, e.g., zathura is in fullscreen mode, one can change focus to
> > another window while zathura remains on screen. This can
> > be disorienting. Is this a problem with zathura, or something that can be
> > patched in dwm?
> 
> If this is undesirable, all you should need to do is return if
> c->isfullscreen is true in focusstack().

I submitted the attached patch to the review queue. I didn't test it
much, but it works for me.
diff --git a/dwm.c b/dwm.c
index 1bbb4b3..fe5069d 100644
--- a/dwm.c
+++ b/dwm.c
@@ -829,7 +829,7 @@ void
 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);

Attachment: pgpjbBYMTRM_P.pgp
Description: PGP signature

Reply via email to