diff options
| author | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-27 16:24:56 +0100 |
|---|---|---|
| committer | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-28 09:54:09 +0100 |
| commit | af3097250a85caca6684c6711be6b064bedfccae (patch) | |
| tree | ec4cb1fc9bb8df4beb638e4bf4b5392da78bf6a9 /src/sxwm.c | |
| parent | 0542d960d82e74552ecbae37cf40314981e3982b (diff) | |
calculate focused win current monitor
Diffstat (limited to 'src/sxwm.c')
| -rw-r--r-- | src/sxwm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -293,6 +293,7 @@ void centre_window() return; } + 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; |
