diff --git a/cmd/wm/area.c b/cmd/wm/area.c index 3c6cea47..5cd09af3 100644 --- a/cmd/wm/area.c +++ b/cmd/wm/area.c @@ -158,8 +158,8 @@ place_client(Area *a, Client *c) return; if(c->rect.width >= a->rect.width || c->rect.height >= a->rect.height - || c->size.flags&USPosition - || c->size.flags&PPosition) + || c->size.flags & USPosition + || c->size.flags & PPosition) return; if(!field) { diff --git a/cmd/wm/event.c b/cmd/wm/event.c index 064f6933..03bad759 100644 --- a/cmd/wm/event.c +++ b/cmd/wm/event.c @@ -97,8 +97,7 @@ handle_buttonpress(XEvent *e) if((c = frame_of_win(ev->window))) { ev->state &= valid_mask; if(ev->state & def.mod) { - if((ev->button == Button1 || ev->button == Button2 || ev->button == Button3)) - focus(c, True); + focus(c, True); switch(ev->button) { case Button1: do_mouse_move(c, False);