implemented restack behavior (floats are on top in tiled mode)

This commit is contained in:
Anselm R.Garbe
2006-08-14 10:18:24 +02:00
parent 4d67199a4b
commit d4b7a9a373
6 changed files with 81 additions and 34 deletions

View File

@ -118,21 +118,24 @@ buttonpress(XEvent *e)
}
}
else if((c = getclient(ev->window))) {
higher(c);
focus(c);
switch(ev->button) {
default:
break;
case Button1:
if(!c->ismax && (arrange == dofloat || c->isfloat))
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
restack(c);
movemouse(c);
}
break;
case Button2:
zoom(NULL);
break;
case Button3:
if(!c->ismax && (arrange == dofloat || c->isfloat))
if(!c->ismax && (arrange == dofloat || c->isfloat)) {
restack(c);
resizemouse(c);
}
break;
}
}