Fix the detection of xdg-decoration removal

This commit is contained in:
Ilya Fedin 2023-03-23 12:48:07 +04:00 committed by John Preston
parent db4419eb30
commit 8b0e9ea7b8

View file

@ -50,6 +50,7 @@ const struct wl_registry_listener WaylandIntegration::Private::RegistryListener
uint32_t version) {
if (interface == qstr("zxdg_decoration_manager_v1")) {
data->xdgDecorationSupported = true;
data->xdgDecorationName = name;
}
}),
decltype(wl_registry_listener::global_remove)(+[](
@ -58,6 +59,7 @@ const struct wl_registry_listener WaylandIntegration::Private::RegistryListener
uint32_t name) {
if (name == data->xdgDecorationName) {
data->xdgDecorationSupported = false;
data->xdgDecorationName = 0;
}
}),
};