mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
Check modal state when determining whether an xwayland view should float
Depends on https://github.com/swaywm/wlroots/pull/1222. I don't know of a program that sets the state to modal without setting the window type, but I know the modal property works because logging the property shows it's true for the Firefox Open File dialog.
This commit is contained in:
parent
ca3be93757
commit
69cd1dfaca
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ static bool wants_floating(struct sway_view *view) {
|
|||
struct wlr_xwayland_surface *surface = view->wlr_xwayland_surface;
|
||||
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) {
|
||||
xcb_atom_t type = surface->window_type[i];
|
||||
|
|
Loading…
Reference in a new issue