1
0
Fork 0
forked from wry/wry

implement zwlr_foreign_toplevel_management protocol (#452)

* implement zwlr_foreign_toplevel_management protocol

* check if initial id is empty
This commit is contained in:
Mostafa Ibrahim 2025-05-28 14:53:29 +03:00 committed by GitHub
parent 3be8534683
commit 0930f00356
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 636 additions and 24 deletions

View file

@ -1126,6 +1126,11 @@ impl Wm {
let mut buf = vec![];
let property_changed = || {
if let Some(window) = data.window.get() {
let class = data.info.class.borrow();
for handle in window.toplevel_data.manager_handles.lock().values() {
handle.send_app_id(class.as_deref().unwrap_or_default());
handle.send_done();
}
window.toplevel_data.property_changed(TL_CHANGED_CLASS_INST);
}
};
@ -2458,7 +2463,7 @@ impl Wm {
}
if fullscreen != data.info.fullscreen.get() {
if let Some(w) = data.window.get() {
w.tl_set_fullscreen(fullscreen);
w.tl_set_fullscreen(fullscreen, None);
}
}
data.info.fullscreen.set(fullscreen);