do not try to resize if size wouldn't change

This commit is contained in:
Leonardo Hernández Hernández 2022-12-14 23:21:58 -06:00
parent 6ca011430a
commit be854cab35
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,9 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
return 0;
}
#endif
if (width == c->surface.xdg->toplevel->current.width
&& height ==c->surface.xdg->toplevel->current.height)
return 0;
return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, width, height);
}