From 9f91fecdb3a9d9acd753280ea397bac270271e20 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 23 Jun 2022 20:10:35 +0200 Subject: [PATCH] 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 --- app/os_wayland.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/os_wayland.go b/app/os_wayland.go index c795e089..aa255bd9 100644 --- a/app/os_wayland.go +++ b/app/os_wayland.go @@ -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}) } }