}
if ((size_hints.flags & XCB_SIZE_HINT_P_RESIZE_INC)) {
+ bool changed = false;
+
if (size_hints.width_inc > 0)
- client->width_increment = size_hints.width_inc;
+ if (client->width_increment != size_hints.width_inc) {
+ client->width_increment = size_hints.width_inc;
+ changed = true;
+ }
if (size_hints.height_inc > 0)
- client->height_increment = size_hints.height_inc;
+ if (client->height_increment != size_hints.height_inc) {
+ client->height_increment = size_hints.height_inc;
+ changed = true;
+ }
- resize_client(conn, client);
- xcb_flush(conn);
+ if (changed) {
+ resize_client(conn, client);
+ xcb_flush(conn);
+ }
}
int base_width = 0, base_height = 0;