From 46c2bfdeb56a6540b7da0259530287471be82103 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Mon, 24 May 2021 07:09:01 +0900 Subject: [PATCH] client: Redraw clients if their geometry has changed If the geometry of a client has been changed using client_set_geometry(), the client should be redrawn. This commit makes the function mark the client as needing a redraw, so that it will be redrawn the next time that the monitor/workspace is redrawn. --- client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.c b/client.c index 7d3049f..89c4549 100644 --- a/client.c +++ b/client.c @@ -71,6 +71,10 @@ int client_set_geometry(struct client *client, struct geom *geom) memcpy(&client->geom, geom, sizeof(*geom)); + if(client_is_visible(client)) { + client_needs_redraw(client); + } + return(0); } -- 2.47.3