xwayland: add support for _NET_WM_WINDOW_TYPE_DESKTOP atom

This commit is contained in:
Grigory Kirillov 2024-01-25 19:27:37 +03:00
parent 3cc4374542
commit 0867dd4e6b
2 changed files with 3 additions and 0 deletions

View file

@ -72,6 +72,7 @@ enum atom_name {
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,
DND_SELECTION, DND_SELECTION,
DND_AWARE, DND_AWARE,
DND_STATUS, DND_STATUS,

View file

@ -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_MENU] = "_NET_WM_WINDOW_TYPE_MENU",
[NET_WM_WINDOW_TYPE_NOTIFICATION] = "_NET_WM_WINDOW_TYPE_NOTIFICATION", [NET_WM_WINDOW_TYPE_NOTIFICATION] = "_NET_WM_WINDOW_TYPE_NOTIFICATION",
[NET_WM_WINDOW_TYPE_SPLASH] = "_NET_WM_WINDOW_TYPE_SPLASH", [NET_WM_WINDOW_TYPE_SPLASH] = "_NET_WM_WINDOW_TYPE_SPLASH",
[NET_WM_WINDOW_TYPE_DESKTOP] = "_NET_WM_WINDOW_TYPE_DESKTOP",
[DND_SELECTION] = "XdndSelection", [DND_SELECTION] = "XdndSelection",
[DND_AWARE] = "XdndAware", [DND_AWARE] = "XdndAware",
[DND_STATUS] = "XdndStatus", [DND_STATUS] = "XdndStatus",
@ -2323,6 +2324,7 @@ bool wlr_xwayland_or_surface_wants_focus(
NET_WM_WINDOW_TYPE_NOTIFICATION, NET_WM_WINDOW_TYPE_NOTIFICATION,
NET_WM_WINDOW_TYPE_POPUP_MENU, NET_WM_WINDOW_TYPE_POPUP_MENU,
NET_WM_WINDOW_TYPE_SPLASH, NET_WM_WINDOW_TYPE_SPLASH,
NET_WM_WINDOW_TYPE_DESKTOP,
NET_WM_WINDOW_TYPE_TOOLTIP, NET_WM_WINDOW_TYPE_TOOLTIP,
NET_WM_WINDOW_TYPE_UTILITY, NET_WM_WINDOW_TYPE_UTILITY,
}; };