summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 5aa71b7c..c4a705d0 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;