]> git.corax.cc Git - mwm/commitdiff
client: Redraw clients if their geometry has changed
authorMatthias Kruk <m@m10k.eu>
Sun, 23 May 2021 22:09:01 +0000 (07:09 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 23 May 2021 22:09:01 +0000 (07:09 +0900)
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

index 7d3049f67fba02145d3e81bdcafb4b63cd3c66fc..89c4549804c9049a83fa54d7c3bdfde1ca745fc3 100644 (file)
--- 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);
 }