JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed the stack position stuff
[dwm.git] / event.c
diff --git a/event.c b/event.c
index f4ac2d5..eab9b12 100644 (file)
--- a/event.c
+++ b/event.c
@@ -123,10 +123,8 @@ buttonpress(XEvent *e) {
                                return;
                        }
                }
-               if(ev->x < x + bmw) {
-                       if(ev->button == Button1)
-                               togglemode(NULL);
-               }
+               if((ev->x < x + bmw) && (ev->button == Button1))
+                       togglemode(NULL);
        }
        else if((c = getclient(ev->window))) {
                focus(c);
@@ -177,8 +175,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);