diff options
author | Samuel Fadel <samuel@nihil.ws> | 2022-12-21 22:37:36 +0100 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2022-12-21 22:37:36 +0100 |
commit | 475f4dc3d514edef85633999809bb028aff01b97 (patch) | |
tree | 0e44a699c02670cca0732b7eeac9a07fbed32e16 /schewm.c | |
parent | e48ed1e15400fcc42c513870f84bca5277cc1579 (diff) |
Fix border drawing in tile toggling functions & launcher impl.
* init.scm: Launcher impl and helpers
* wm.scm: Launcher with fork & execlp (execvp)
* schewm.c: Fix border by explicitly calling border drawing proc after
restoring window size
Diffstat (limited to 'schewm.c')
-rw-r--r-- | schewm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2475,7 +2475,7 @@ enum TileType { TILE_BOTTOM_RIGHT, }; -void +static void wm_toggle_tile(enum TileType tile_type) { if (wm.focus == NULL) { return; @@ -2485,7 +2485,8 @@ wm_toggle_tile(enum TileType tile_type) { if (wm.focus->has_old_size) { client_restore_size(wm.focus); dpy_update_window_geometry(wm.focus); - } else { + dpy_draw_focused_borders(wm.focus); + } else { struct Rect rect; // Start with monitor size, then reduce to appropriate target size wm_client_monitor_size(wm.focus, true, &rect); |