Check if XWayland client size_hints are NULL
This commit is contained in:
parent
3c11ad9aa6
commit
2f8736b986
5
client.h
5
client.h
@ -215,8 +215,13 @@ client_min_size(Client *c, int *width, int *height)
|
|||||||
if (client_is_x11(c)) {
|
if (client_is_x11(c)) {
|
||||||
struct wlr_xwayland_surface_size_hints *size_hints;
|
struct wlr_xwayland_surface_size_hints *size_hints;
|
||||||
size_hints = c->surface.xwayland->size_hints;
|
size_hints = c->surface.xwayland->size_hints;
|
||||||
|
if (size_hints) {
|
||||||
*width = size_hints->min_width;
|
*width = size_hints->min_width;
|
||||||
*height = size_hints->min_height;
|
*height = size_hints->min_height;
|
||||||
|
} else {
|
||||||
|
*width = 0;
|
||||||
|
*height = 0;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user