From b71e62386593249c366b6253b9fa5fc9e01db4d6 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sun, 25 Dec 2022 12:06:12 +0100 Subject: Maximization should also redraw borders. * schewm.c: wm_set_client_state(): Call dpy_draw_borders() as needed --- schewm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schewm.c b/schewm.c index e73b0e8..ab6993c 100644 --- a/schewm.c +++ b/schewm.c @@ -1930,6 +1930,7 @@ wm_set_client_state(struct Client *client, enum WindowState state) { } client_restore_size(client); dpy_update_window_geometry(client); + dpy_draw_borders(client, wm.focus == client); break; case WS_ICONIFIED: dpy_unmap_window(client->id); @@ -1947,6 +1948,7 @@ wm_set_client_state(struct Client *client, enum WindowState state) { client->height = mon_rect.height - cfg.border_width * 2; } dpy_update_window_geometry(client); + dpy_draw_borders(client, wm.focus == client); break; case WS_FULLSCREEN: break; -- cgit v1.2.3