From 4a549b1e26fed39598a55a3d22d575eb2ff99e13 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 17 Aug 2024 11:15:37 +0400 Subject: floating windows appear in the middle of the screen --- dwm.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- cgit v1.2.3