mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2026-06-20 15:02:45 +00:00
update alwayscenter and center-terminal
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 6f241273b58643396fd052027c8cde6f815376c8 Mon Sep 17 00:00:00 2001
|
||||
From 95ac2fd73af8cee3ce3e556c254e60a2ca985515 Mon Sep 17 00:00:00 2001
|
||||
From: Guido Cella <guido@guidocella.xyz>
|
||||
Date: Tue, 16 Jan 2024 18:14:50 +0100
|
||||
Subject: [PATCH] center floating windows
|
||||
@@ -8,18 +8,18 @@ Subject: [PATCH] center floating windows
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index f25ac2f..9058ce2 100644
|
||||
index 95ebee8..ac077e3 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -450,6 +450,8 @@ applyrules(Client *c)
|
||||
@@ -453,6 +453,8 @@ applyrules(Client *c)
|
||||
}
|
||||
}
|
||||
}
|
||||
+ c->geom.x = (mon->w.width - c->geom.width) / 2 + mon->m.x;
|
||||
+ c->geom.y = (mon->w.height - c->geom.height) / 2 + mon->m.y;
|
||||
wlr_scene_node_reparent(&c->scene->node, layers[c->isfloating ? LyrFloat : LyrTile]);
|
||||
setmon(c, mon, newtags);
|
||||
}
|
||||
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user