diff options
author | emersion <contact@emersion.fr> | 2018-09-02 10:17:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-02 10:17:29 +0200 |
commit | 159edc6d13db42b15b28c7ea58cdf2371d29297d (patch) | |
tree | f20bf096414777d151a3405ba96fbe00356e5d8d | |
parent | Merge pull request #2554 from emersion/init-dmabuf-global-in-renderer (diff) | |
parent | Check modal state when determining whether an xwayland view should float (diff) | |
download | sway-159edc6d13db42b15b28c7ea58cdf2371d29297d.tar.gz sway-159edc6d13db42b15b28c7ea58cdf2371d29297d.tar.zst sway-159edc6d13db42b15b28c7ea58cdf2371d29297d.zip |
Merge pull request #2559 from RyanDwyer/xwayland-check-modal
Check modal state when determining whether an xwayland view should float
-rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 2adc28c5..68d70b64 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -218,7 +218,9 @@ static bool wants_floating(struct sway_view *view) { | |||
218 | struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface; | 218 | struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface; |
219 | struct sway_xwayland *xwayland = &server.xwayland; | 219 | struct sway_xwayland *xwayland = &server.xwayland; |
220 | 220 | ||
221 | // TODO: return true if the NET_WM_STATE is MODAL | 221 | if (surface->modal) { |
222 | return true; | ||
223 | } | ||
222 | 224 | ||
223 | for (size_t i = 0; i < surface->window_type_len; ++i) { | 225 | for (size_t i = 0; i < surface->window_type_len; ++i) { |
224 | xcb_atom_t type = surface->window_type[i]; | 226 | xcb_atom_t type = surface->window_type[i]; |