app: update Window for macOS, X11 and Wayland

Commit #c4f98d3c1eab201419be255fafb139f7e10ad273 added
the Minimized and Maximized options for the Windows platform.
This change adds those for the remaining desktop platforms.

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2022-01-17 20:59:39 +01:00
committed by Elias Naur
parent 2ce9ad36af
commit b15a9cb595
5 changed files with 230 additions and 116 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ func (w *window) Configure(options []Option) {
}
// A config event is sent to the main event loop whenever the configuration is changed
if oldConfig.Mode != w.config.Mode || oldConfig.Size != w.config.Size {
if oldConfig != w.config {
w.w.Event(ConfigEvent{Config: w.config})
}
}