diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-02 23:02:18 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-02 23:02:18 +0530 |
| commit | e8d20061a19872325c35bf228feda36c602609b5 (patch) | |
| tree | b7c61b3083bcb048f1e7774eb59905e4251a49e5 /client.h | |
| parent | da915412522734dd15f234e03beaf4b181753330 (diff) | |
| parent | aa69ed81b558f74e470e69cdcd442f9048ee624c (diff) | |
Merge branch 'main' into compromyse
Diffstat (limited to 'client.h')
| -rw-r--r-- | client.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -213,16 +213,15 @@ client_is_float_type(Client *c) if (client_is_x11(c)) { struct wlr_xwayland_surface *surface = c->surface.xwayland; xcb_size_hints_t *size_hints = surface->size_hints; - size_t i; if (surface->modal) return 1; - for (i = 0; i < surface->window_type_len; i++) - if (surface->window_type[i] == netatom[NetWMWindowTypeDialog] - || surface->window_type[i] == netatom[NetWMWindowTypeSplash] - || surface->window_type[i] == netatom[NetWMWindowTypeToolbar] - || surface->window_type[i] == netatom[NetWMWindowTypeUtility]) - return 1; + if (wlr_xwayland_surface_has_window_type(surface, WLR_XWAYLAND_NET_WM_WINDOW_TYPE_DIALOG) + || wlr_xwayland_surface_has_window_type(surface, WLR_XWAYLAND_NET_WM_WINDOW_TYPE_SPLASH) + || wlr_xwayland_surface_has_window_type(surface, WLR_XWAYLAND_NET_WM_WINDOW_TYPE_TOOLBAR) + || wlr_xwayland_surface_has_window_type(surface, WLR_XWAYLAND_NET_WM_WINDOW_TYPE_UTILITY)) { + return 1; + } return size_hints && size_hints->min_width > 0 && size_hints->min_height > 0 && (size_hints->max_width == size_hints->min_width |
