summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-08-17 11:15:37 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-08-17 11:15:37 +0400
commit7ee3e521dc4318f15870ee271ccb82facac95579 (patch)
treee883cd4c6d57317d8f948c56a60520786f771e75
parent8adce9ac336b54542530277c3b7768637c41b05d (diff)
floating windows appear in the middle of the screen
-rw-r--r--dwm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 96fedc2..dc3834f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1708,6 +1708,9 @@ togglefloating(const Arg *arg)
if (selmon->sel->isfloating)
resize(selmon->sel, selmon->sel->x, selmon->sel->y,
selmon->sel->w, selmon->sel->h, 0);
+
+ resize(selmon->sel, selmon->mw / 4 , selmon->mh /4 , selmon->mw / 2, selmon->mh / 2 , 0);
+
arrange(selmon);
}