Merge pull request #2926 from RyanDwyer/fix-xwayland-floating-logic

Fix xwayland wants_floating logic
master
Drew DeVault 6 years ago committed by GitHub
commit d9ed9445de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -239,7 +239,7 @@ static bool wants_floating(struct sway_view *view) {
struct wlr_xwayland_surface_size_hints *size_hints = surface->size_hints; struct wlr_xwayland_surface_size_hints *size_hints = surface->size_hints;
if (size_hints != NULL && 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_width == size_hints->min_width ||
size_hints->max_height == size_hints->min_height)) { size_hints->max_height == size_hints->min_height)) {
return true; return true;

Loading…
Cancel
Save