aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-10-22 22:12:57 +0200
committerGitHub <noreply@github.com>2018-10-22 22:12:57 +0200
commitd9ed9445de73c138ddda21483c2ee49a73926dd8 (patch)
tree8f61608440a5737d9317089a73986a39561d4560
parentcdbfc3338bcaef113ef013a8234ad668eea22a3c (diff)
parent16ef702645adef3a55d0641d092b6d26b81bb3c6 (diff)
Merge pull request #2926 from RyanDwyer/fix-xwayland-floating-logic
Fix xwayland wants_floating logic
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index b8ac8434..5305ce12 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -239,7 +239,7 @@ static bool wants_floating(struct sway_view *view) {
struct wlr_xwayland_surface_size_hints *size_hints = surface->size_hints;
if (size_hints != NULL &&
- size_hints->min_width != 0 && size_hints->min_height != 0 &&
+ size_hints->min_width > 0 && size_hints->min_height > 0 &&
(size_hints->max_width == size_hints->min_width ||
size_hints->max_height == size_hints->min_height)) {
return true;