mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: [Wayland] maintain fallback decoration height during maximize
Window.decorations.height is supposed to be a constant during the lifetime of the window, unlike w.decorations.Config.decoHeight that varies depending on the decorations state (fallback or custom). This change makes that so, fixing a problem where the fallback decorations would fail to offset client content after a maximize or minimize. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-3
@@ -180,6 +180,7 @@ func NewWindow(options ...Option) *Window {
|
||||
w.decorations.Theme = theme
|
||||
w.decorations.Decorations = deco
|
||||
w.decorations.enabled = cnf.Decorated
|
||||
w.decorations.height = decoHeight
|
||||
w.imeState.compose = key.Range{Start: -1, End: -1}
|
||||
w.semantic.ids = make(map[router.SemanticID]router.SemanticNode)
|
||||
w.callbacks.w = w
|
||||
@@ -906,9 +907,6 @@ func (w *Window) processEvent(d driver, e event.Event) bool {
|
||||
w.waitAck(d)
|
||||
case ConfigEvent:
|
||||
w.decorations.Config = e2.Config
|
||||
if !w.fallbackDecorate() {
|
||||
w.decorations.height = 0
|
||||
}
|
||||
e2.Config = w.effectiveConfig()
|
||||
w.out <- e2
|
||||
case event.Event:
|
||||
|
||||
Reference in New Issue
Block a user