replace wlr_xwayland_surface_size_hints with xcb_size_hints_t

This commit is contained in:
Leonardo Hernández Hernández 2022-05-08 17:51:42 -05:00
parent dc7709a00e
commit 31fa6600a1
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

View File

@ -97,7 +97,7 @@ client_is_float_type(Client *c)
#ifdef XWAYLAND #ifdef XWAYLAND
if (client_is_x11(c)) { if (client_is_x11(c)) {
struct wlr_xwayland_surface *surface = c->surface.xwayland; struct wlr_xwayland_surface *surface = c->surface.xwayland;
struct wlr_xwayland_surface_size_hints *size_hints; xcb_size_hints_t *size_hints;
if (surface->modal) if (surface->modal)
return 1; return 1;
@ -208,8 +208,7 @@ client_min_size(Client *c, int *width, int *height)
struct wlr_xdg_toplevel_state *state; struct wlr_xdg_toplevel_state *state;
#ifdef XWAYLAND #ifdef XWAYLAND
if (client_is_x11(c)) { if (client_is_x11(c)) {
struct wlr_xwayland_surface_size_hints *size_hints; xcb_size_hints_t *size_hints = c->surface.xwayland->size_hints;
size_hints = c->surface.xwayland->size_hints;
*width = size_hints->min_width; *width = size_hints->min_width;
*height = size_hints->min_height; *height = size_hints->min_height;
return; return;