move config-related variables and functions to config.c

This commit is contained in:
2023-07-04 19:31:38 +02:00
parent 12351bdf99
commit f98f9e6826
5 changed files with 37 additions and 155 deletions

View File

@ -219,9 +219,9 @@ TreeNode* wm_treenode_remove_client(Wm *wm, TreeNode *root, Client *client)
client->ws->tree = *sibling_node;
client->ws->tree.pos = (Rect) {
.x = wm->cfg_border_width, .y = wm->cfg_border_width + dock_y ,
.w = client->ws->monitor->info.width - wm->cfg_border_width*2,
.h = client->ws->monitor->info.height - wm->cfg_border_width*2 - dock_y,
.x = wm->config.border_width, .y = wm->config.border_width + dock_y ,
.w = client->ws->monitor->info.width - wm->config.border_width*2,
.h = client->ws->monitor->info.height - wm->config.border_width*2 - dock_y,
};
assert(client->ws->tree.children.size == 2);