fix: negotiate initial server decorations

This commit is contained in:
Samuel Onoja committed 2026-09-25 02:26:19 +01:00
1 parent 6cdf4301a2
commit 4a1eab5b4a
1 file changed
+7 -1
+7 -1
View File
@@ -274,7 +274,13 @@ fn check_grab(
impl XdgDecorationHandler for Ferese {
fn new_decoration(&mut self, toplevel: ToplevelSurface) {
let mode = self.decoration_mode_for(&toplevel);
set_decoration_mode(&toplevel, mode);
toplevel.with_pending_state(|state| state.decoration_mode = Some(mode));
// This must be unconditional: the initial xdg-toplevel configure may
// already contain the same mode before the decoration object exists.
// `send_pending_configure` would then see no state change and omit the
// decoration configure, leaving clients to fall back to CSD.
toplevel.send_configure();
}
fn request_mode(&mut self, toplevel: ToplevelSurface, _mode: Mode) {