diff options
| author | Ben Jargowsky <benjar63@gmail.com> | 2022-05-15 13:18:40 +0200 | 
|---|---|---|
| committer | Ben Jargowsky <benjar63@gmail.com> | 2022-05-15 23:09:21 +0200 | 
| commit | 2f8736b986786f526efbd2bb6863ed39bba4d3e0 (patch) | |
| tree | d30a0a468348eb9d8c804070333ee58ce7972ff6 /client.h | |
| parent | 3c11ad9aa6d3d8d69c926d5c767aedfdf1cd03b1 (diff) | |
Check if XWayland client size_hints are NULL
Diffstat (limited to '')
| -rw-r--r-- | client.h | 9 | 
1 files changed, 7 insertions, 2 deletions
| @@ -215,8 +215,13 @@ client_min_size(Client *c, int *width, int *height)  	if (client_is_x11(c)) {  		struct wlr_xwayland_surface_size_hints *size_hints;  		size_hints = c->surface.xwayland->size_hints; -		*width = size_hints->min_width; -		*height = size_hints->min_height; +		if (size_hints) { +			*width = size_hints->min_width; +			*height = size_hints->min_height; +		} else { +			*width = 0; +			*height = 0; +		}  		return;  	}  #endif | 
