From 475f4dc3d514edef85633999809bb028aff01b97 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 21 Dec 2022 22:37:36 +0100 Subject: 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 --- schewm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'schewm.c') diff --git a/schewm.c b/schewm.c index bcbcb62..82392a2 100644 --- a/schewm.c +++ b/schewm.c @@ -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); -- cgit v1.2.3