diff options
author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 10:18:24 +0200 |
---|---|---|
committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 10:18:24 +0200 |
commit | d4b7a9a3735deeab639f28b5bb2f568e0dc49616 (patch) | |
tree | 9cff17d7a5d4fa2fe94b39d0d18d8d72c8429736 /event.c | |
parent | 4d67199a4bb68e5377d2fece62a83fde66c92861 (diff) | |
download | dwm-d4b7a9a3735deeab639f28b5bb2f568e0dc49616.tar.gz dwm-d4b7a9a3735deeab639f28b5bb2f568e0dc49616.tar.bz2 dwm-d4b7a9a3735deeab639f28b5bb2f568e0dc49616.zip |
implemented restack behavior (floats are on top in tiled mode)
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; } } |