diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-22 21:51:10 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-22 21:51:10 +1000 |
commit | 16ef702645adef3a55d0641d092b6d26b81bb3c6 (patch) | |
tree | 2743a339b934094602b53cb732dcbcf3fbedb2d0 /sway | |
parent | Merge pull request #2913 from emersion/fix-swaybar-hotplug (diff) | |
download | sway-16ef702645adef3a55d0641d092b6d26b81bb3c6.tar.gz sway-16ef702645adef3a55d0641d092b6d26b81bb3c6.tar.zst sway-16ef702645adef3a55d0641d092b6d26b81bb3c6.zip |
Fix xwayland wants_floating logic
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/xwayland.c | 2 |
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) { | |||
239 | 239 | ||
240 | struct wlr_xwayland_surface_size_hints *size_hints = surface->size_hints; | 240 | struct wlr_xwayland_surface_size_hints *size_hints = surface->size_hints; |
241 | if (size_hints != NULL && | 241 | if (size_hints != NULL && |
242 | size_hints->min_width != 0 && size_hints->min_height != 0 && | 242 | size_hints->min_width > 0 && size_hints->min_height > 0 && |
243 | (size_hints->max_width == size_hints->min_width || | 243 | (size_hints->max_width == size_hints->min_width || |
244 | size_hints->max_height == size_hints->min_height)) { | 244 | size_hints->max_height == size_hints->min_height)) { |
245 | return true; | 245 | return true; |