Merge pull request #919 from emersion/xwayland-chromium-combobox

xwayland: fix some Chromium comboboxes
This commit is contained in:
Drew DeVault 2018-04-27 10:48:40 +02:00 committed by GitHub
commit 3feb690aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,8 @@ enum atom_name {
NET_WM_WINDOW_TYPE_POPUP_MENU, NET_WM_WINDOW_TYPE_POPUP_MENU,
NET_WM_WINDOW_TYPE_COMBO, NET_WM_WINDOW_TYPE_COMBO,
NET_WM_WINDOW_TYPE_MENU, NET_WM_WINDOW_TYPE_MENU,
NET_WM_WINDOW_TYPE_NOTIFICATION,
NET_WM_WINDOW_TYPE_SPLASH,
DND_SELECTION, DND_SELECTION,
DND_AWARE, DND_AWARE,
DND_STATUS, DND_STATUS,

View File

@ -61,6 +61,8 @@ const char *atom_map[ATOM_LAST] = {
"_NET_WM_WINDOW_TYPE_POPUP_MENU", "_NET_WM_WINDOW_TYPE_POPUP_MENU",
"_NET_WM_WINDOW_TYPE_COMBO", "_NET_WM_WINDOW_TYPE_COMBO",
"_NET_WM_WINDOW_TYPE_MENU", "_NET_WM_WINDOW_TYPE_MENU",
"_NET_WM_WINDOW_TYPE_NOTIFICATION",
"_NET_WM_WINDOW_TYPE_SPLASH",
"XdndSelection", "XdndSelection",
"XdndAware", "XdndAware",
"XdndStatus", "XdndStatus",
@ -1649,9 +1651,10 @@ bool wlr_xwayland_surface_is_unmanaged(
NET_WM_WINDOW_TYPE_DND, NET_WM_WINDOW_TYPE_DND,
NET_WM_WINDOW_TYPE_DROPDOWN_MENU, NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
NET_WM_WINDOW_TYPE_MENU, NET_WM_WINDOW_TYPE_MENU,
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_TOOLTIP, NET_WM_WINDOW_TYPE_TOOLTIP,
NET_WM_WINDOW_TYPE_UTILITY,
}; };
for (size_t i = 0; i < sizeof(needles) / sizeof(needles[0]); ++i) { for (size_t i = 0; i < sizeof(needles) / sizeof(needles[0]); ++i) {