From d4b7a9a3735deeab639f28b5bb2f568e0dc49616 Mon Sep 17 00:00:00 2001 From: Anselm R.Garbe Date: Mon, 14 Aug 2006 10:18:24 +0200 Subject: implemented restack behavior (floats are on top in tiled mode) --- event.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index 1a8de56..e5ca166 100644 --- a/event.c +++ b/event.c @@ -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; } } -- cgit v1.2.3