From: Matthias Kruk Date: Sun, 23 May 2021 22:09:01 +0000 (+0900) Subject: client: Redraw clients if their geometry has changed X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=46c2bfdeb56a6540b7da0259530287471be82103;p=mwm 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. --- 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); }