From 0867dd4e6bf1c0ff8d947d563bdd333464a1c0a8 Mon Sep 17 00:00:00 2001 From: Grigory Kirillov Date: Thu, 25 Jan 2024 19:27:37 +0300 Subject: xwayland: add support for _NET_WM_WINDOW_TYPE_DESKTOP atom --- include/xwayland/xwm.h | 1 + xwayland/xwm.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index da3515da..66108e2b 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -72,6 +72,7 @@ enum atom_name { NET_WM_WINDOW_TYPE_MENU, NET_WM_WINDOW_TYPE_NOTIFICATION, NET_WM_WINDOW_TYPE_SPLASH, + NET_WM_WINDOW_TYPE_DESKTOP, DND_SELECTION, DND_AWARE, DND_STATUS, diff --git a/xwayland/xwm.c b/xwayland/xwm.c index b6a794dc..9a6cf771 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -74,6 +74,7 @@ static const char *const atom_map[ATOM_LAST] = { [NET_WM_WINDOW_TYPE_MENU] = "_NET_WM_WINDOW_TYPE_MENU", [NET_WM_WINDOW_TYPE_NOTIFICATION] = "_NET_WM_WINDOW_TYPE_NOTIFICATION", [NET_WM_WINDOW_TYPE_SPLASH] = "_NET_WM_WINDOW_TYPE_SPLASH", + [NET_WM_WINDOW_TYPE_DESKTOP] = "_NET_WM_WINDOW_TYPE_DESKTOP", [DND_SELECTION] = "XdndSelection", [DND_AWARE] = "XdndAware", [DND_STATUS] = "XdndStatus", @@ -2323,6 +2324,7 @@ bool wlr_xwayland_or_surface_wants_focus( NET_WM_WINDOW_TYPE_NOTIFICATION, NET_WM_WINDOW_TYPE_POPUP_MENU, NET_WM_WINDOW_TYPE_SPLASH, + NET_WM_WINDOW_TYPE_DESKTOP, NET_WM_WINDOW_TYPE_TOOLTIP, NET_WM_WINDOW_TYPE_UTILITY, }; -- cgit v1.2.3