dwm-meillo

diff event.c @ 400:052657ff2e7b

applied Sanders max_and_focus.patch
author Anselm R. Garbe <arg@10kloc.org>
date Mon, 04 Sep 2006 08:55:49 +0200
parents 74739798b0b2
children ffb462fb7903
line diff
     1.1 --- a/event.c	Fri Sep 01 15:31:59 2006 +0200
     1.2 +++ b/event.c	Mon Sep 04 08:55:49 2006 +0200
     1.3 @@ -131,15 +131,15 @@
     1.4  	}
     1.5  	else if((c = getclient(ev->window))) {
     1.6  		focus(c);
     1.7 -		if(c->ismax || CLEANMASK(ev->state) != MODKEY)
     1.8 +		if(maximized || CLEANMASK(ev->state) != MODKEY)
     1.9  			return;
    1.10 -		if((ev->button == Button1) && ((arrange == dofloat) || c->isfloat)) {
    1.11 +		if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) {
    1.12  			restack(c);
    1.13  			movemouse(c);
    1.14  		}
    1.15  		else if(ev->button == Button2)
    1.16  			zoom(NULL);
    1.17 -		else if(ev->button == Button3 && ((arrange == dofloat) || c->isfloat)) {
    1.18 +		else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
    1.19  			restack(c);
    1.20  			resizemouse(c);
    1.21  		}
    1.22 @@ -173,7 +173,7 @@
    1.23  	XWindowChanges wc;
    1.24  
    1.25  	if((c = getclient(ev->window))) {
    1.26 -		if(!c->isfloat && (arrange != dofloat) && c->ismax) {
    1.27 +		if((c == sel) && !c->isfloat && (arrange != dofloat) && maximized) {
    1.28  			synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width);
    1.29  			XSync(dpy, False);
    1.30  			return;