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; }