Fix the detection of xdg-decoration removal
This commit is contained in:
parent
db4419eb30
commit
8b0e9ea7b8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue