From 3252773ff7312614da4b890bc392400bfe4eb3c9 Mon Sep 17 00:00:00 2001 From: Akos Horvath Date: Tue, 4 Jul 2023 16:07:24 +0200 Subject: [PATCH] fix borders --- src/wm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wm.c b/src/wm.c index 1c49c57..6d814e6 100644 --- a/src/wm.c +++ b/src/wm.c @@ -193,9 +193,9 @@ void wm_ws_tree_insert_client(Wm *wm, Workspace *ws, Client *client) ws->tree.type = NODE_CLIENT; ws->tree.client = client; ws->tree.pos = (Rect) { - .x = 0, .y = dock_y, - .w = ws->monitor->info.width, - .h = ws->monitor->info.height - dock_y, + .x = wm->cfg_border_width, .y = wm->cfg_border_width + dock_y , + .w = ws->monitor->info.width - wm->cfg_border_width*2, + .h = ws->monitor->info.height - wm->cfg_border_width*2 - dock_y, }; return; }