diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2019-03-04 18:41:45 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-04 18:49:39 +0100 |
commit | fb106eb97925d16ed6744481a9798d068a6f6690 (patch) | |
tree | 38c050954c19c56043b32b81486b29240ad033b7 /xwayland/xwm.c | |
parent | c9b9e4852518edfb5c8c5cacaae18515b881bb9b (diff) |
xwm: fix typos in WM_NORMAL_HINTS handling
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r-- | xwayland/xwm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index cf6a230f..34bbd02f 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -583,8 +583,8 @@ static void read_surface_normal_hints(struct wlr_xwm *xwm, memcpy(xsurface->size_hints, &size_hints, sizeof(struct wlr_xwayland_surface_size_hints)); - bool has_min_size_hints = (size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MIN_SIZE) == 0; - bool has_base_size_hints = (size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE) == 0; + bool has_min_size_hints = (size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MIN_SIZE) != 0; + bool has_base_size_hints = (size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE) != 0; /* ICCCM says that if absent, min size is equal to base size and vice versa */ if (!has_min_size_hints && !has_base_size_hints) { xsurface->size_hints->min_width = -1; @@ -595,8 +595,8 @@ static void read_surface_normal_hints(struct wlr_xwm *xwm, xsurface->size_hints->base_width = xsurface->size_hints->min_width; xsurface->size_hints->base_height = xsurface->size_hints->min_height; } else if (!has_min_size_hints) { - xsurface->size_hints->base_width = xsurface->size_hints->min_width; - xsurface->size_hints->base_height = xsurface->size_hints->min_height; + xsurface->size_hints->min_width = xsurface->size_hints->base_width; + xsurface->size_hints->min_height = xsurface->size_hints->base_height; } if ((size_hints.flags & XCB_ICCCM_SIZE_HINT_P_MAX_SIZE) == 0) { |