Merge pull request #2559 from RyanDwyer/xwayland-check-modal

Check modal state when determining whether an xwayland view should float
master
emersion 6 years ago committed by GitHub
commit 159edc6d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -218,7 +218,9 @@ static bool wants_floating(struct sway_view *view) {
struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface; struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface;
struct sway_xwayland *xwayland = &server.xwayland; struct sway_xwayland *xwayland = &server.xwayland;
// TODO: return true if the NET_WM_STATE is MODAL if (surface->modal) {
return true;
}
for (size_t i = 0; i < surface->window_type_len; ++i) { for (size_t i = 0; i < surface->window_type_len; ++i) {
xcb_atom_t type = surface->window_type[i]; xcb_atom_t type = surface->window_type[i];

Loading…
Cancel
Save