From c55ad11d96f91de2d3b0f351a7da8d455accc604 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 8 Apr 2018 12:02:52 -0400 Subject: xwayland: add _NET_WM_WINDOW_TYPE_MENU support --- xwayland/xwayland.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'xwayland/xwayland.c') diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index 765e17d0..bdb2c0d6 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -405,24 +405,3 @@ void wlr_xwayland_set_seat(struct wlr_xwayland *xwayland, xwayland->seat_destroy.notify = wlr_xwayland_handle_seat_destroy; wl_signal_add(&seat->events.destroy, &xwayland->seat_destroy); } - - -bool wlr_xwayland_surface_is_unmanaged(const struct wlr_xwayland_surface *surface) { - static enum atom_name needles[] = { - NET_WM_WINDOW_TYPE_UTILITY, - NET_WM_WINDOW_TYPE_TOOLTIP, - NET_WM_WINDOW_TYPE_DND, - NET_WM_WINDOW_TYPE_DROPDOWN_MENU, - NET_WM_WINDOW_TYPE_POPUP_MENU, - NET_WM_WINDOW_TYPE_COMBO, - }; - - for (size_t i = 0; i < sizeof(needles) / sizeof(needles[0]); ++i) { - if (xwm_atoms_contains(surface->xwm, surface->window_type, - surface->window_type_len, needles[i])) { - return true; - } - } - - return false; -} -- cgit v1.2.3