diff options
| author | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-10-14 17:57:34 +0100 |
|---|---|---|
| committer | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-10-14 17:57:34 +0100 |
| commit | 2aa3e71c9d6641b9474a426735c783d6fb914d30 (patch) | |
| tree | aa93450350acc8f799cf6862a3925099a6ffdd8a /src/sxwm.c | |
| parent | 8d5f9d5f34bd40a38bf26131371e78507c234b8a (diff) | |
update centre_window to account for border_width
Diffstat (limited to 'src/sxwm.c')
| -rw-r--r-- | src/sxwm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -359,6 +359,8 @@ void centre_window(void) focused->mon = get_monitor_for(focused); int x = mons[focused->mon].x + (mons[focused->mon].w - focused->w) / 2; int y = mons[focused->mon].y + (mons[focused->mon].h - focused->h) / 2; + x -= user_config.border_width; + y -= user_config.border_width; focused->x = x; focused->y = y; |
