mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
app: guarantee a ConfigEvent for every Window.Configure call
Not only is the client guaranteed a ConfigEvent, but app.Window can assume that an unsupported decoration change will be corrected (by a ConfigEvent with Decorated forced to the supported value). Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-3
@@ -1329,9 +1329,7 @@ func (w *window) Configure(options []Option) {
|
||||
if cnf.Decorated != prev.Decorated {
|
||||
w.config.Decorated = cnf.Decorated
|
||||
}
|
||||
if w.config != prev {
|
||||
w.callbacks.Event(ConfigEvent{Config: w.config})
|
||||
}
|
||||
w.callbacks.Event(ConfigEvent{Config: w.config})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user