diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-14 23:21:58 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-24 16:44:09 -0600 | 
| commit | be854cab35bc090ab3f6fbad3a0f93013294226d (patch) | |
| tree | dee72b64df89aa0809de26fa7bc1b9c59bba1b10 | |
| parent | 6ca011430a18980f12f7314cdeeff36051268a67 (diff) | |
do not try to resize if size wouldn't change
| -rw-r--r-- | client.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -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);  } | 
