summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 5aa71b7..c4a705d 100644
--- a/dwm.c
+++ b/dwm.c
@@ -648,7 +648,8 @@ enternotify(XEvent *e) {
return;
if((c = getclient(ev->window))) {
focus(c);
- restack();
+ if(ISTILE && !c->isfloating)
+ restack();
}
else if(ev->window == root) {
selscreen = True;