aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-10-22 21:49:17 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-10-22 21:49:17 +1000
commitbc52de031eb0ad04dd25ce0cd1917a581ae1df55 (patch)
tree4fc2636e9b9730ff2611d5edc76b2579dd152534 /xwayland
parent6c7e0e48b1e67f48e2a730abd1a61abd75b6e7e3 (diff)
xwm: Unset min/max size hints if they're not used
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 8c1777b7..56c0853f 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -560,6 +560,15 @@ static void read_surface_normal_hints(struct wlr_xwm *xwm,
memcpy(xsurface->size_hints, &size_hints,
sizeof(struct wlr_xwayland_surface_size_hints));
+ if ((size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MIN_SIZE) == 0) {
+ xsurface->size_hints->min_width = -1;
+ xsurface->size_hints->min_height = -1;
+ }
+ if ((size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MAX_SIZE) == 0) {
+ xsurface->size_hints->max_width = -1;
+ xsurface->size_hints->max_height = -1;
+ }
+
wlr_log(WLR_DEBUG, "WM_NORMAL_HINTS (%d)", reply->value_len);
}
#else