summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2022-12-25 12:06:12 +0100
committerSamuel Fadel <samuel@nihil.ws>2022-12-25 12:06:12 +0100
commitb71e62386593249c366b6253b9fa5fc9e01db4d6 (patch)
treed157762e4a7478d63f0453be71ad6a116761e5a4
parent2a6802cba40a701b9c4f92b7ea8734e73e066575 (diff)
Maximization should also redraw borders.
* schewm.c: wm_set_client_state(): Call dpy_draw_borders() as needed
-rw-r--r--schewm.c2
1 files changed, 2 insertions, 0 deletions
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;