app: [Wayland] don't allow changes to decoration mode

We're about to enable platform support for switching native
window decorations on and off. However, the Wayland platform
only supports server-side switching of decoration mode, not
(yet) client-side. Thus, don't switch mode even when asked to.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-06-23 20:10:35 +02:00
parent 3ca4c98596
commit 9f91fecdb3
+1 -4
View File
@@ -1010,10 +1010,7 @@ func (w *window) Configure(options []Option) {
C.xdg_toplevel_set_max_size(w.topLvl, C.int32_t(scaled.X), C.int32_t(scaled.Y))
}
}
if cnf.Decorated != prev.Decorated {
w.config.Decorated = cnf.Decorated
}
if w.config != prev {
if w.config != prev || w.config.Decorated != cnf.Decorated {
w.w.Event(ConfigEvent{Config: w.config})
}
}