JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Button3 click on mode label toggles stack position now
[dwm.git] / event.c
diff --git a/event.c b/event.c
index f4ac2d5..a17034c 100644 (file)
--- a/event.c
+++ b/event.c
@@ -126,6 +126,8 @@ buttonpress(XEvent *e) {
                if(ev->x < x + bmw) {
                        if(ev->button == Button1)
                                togglemode(NULL);
+                       else if(ev->button == Button3)
+                               togglestackpos(NULL);
                }
        }
        else if((c = getclient(ev->window))) {
@@ -177,8 +179,9 @@ configurerequest(XEvent *e) {
                        configure(c);
                XSync(dpy, False);
                if(c->isfloat) {
-                       if(isvisible(c))
-                               resize(c, False, TopLeft);
+                       resize(c, False, TopLeft);
+                       if(!isvisible(c))
+                               ban(c);
                }
                else
                        arrange(NULL);