surface: Restore previous decoration mode

This commit is contained in:
Victoria Brekenfeld 2023-06-12 17:25:43 +02:00
parent 8e4fa6bfc6
commit 5dda8cfef5
2 changed files with 26 additions and 8 deletions

View file

@ -55,7 +55,7 @@ impl State {
.find(|(window, _)| window.wl_surface().as_ref() == Some(surface))
{
window.toplevel().with_pending_state(|state| {
state.decoration_mode = dbg!(Some(mode));
state.decoration_mode = Some(mode);
});
window.toplevel().send_configure();
}