mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
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:
+1
-4
@@ -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))
|
C.xdg_toplevel_set_max_size(w.topLvl, C.int32_t(scaled.X), C.int32_t(scaled.Y))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if cnf.Decorated != prev.Decorated {
|
if w.config != prev || w.config.Decorated != cnf.Decorated {
|
||||||
w.config.Decorated = cnf.Decorated
|
|
||||||
}
|
|
||||||
if w.config != prev {
|
|
||||||
w.w.Event(ConfigEvent{Config: w.config})
|
w.w.Event(ConfigEvent{Config: w.config})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user