From 5dc8e0e39d076275c62a7aa58b8061fe64da6c8f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 28 Jun 2022 15:00:10 +0100 Subject: [PATCH] app: [Windows] always send ConfigEvent after Configure This case was missed in 69e4a3cff3c697db9f024985d8cec271269dab3a. Signed-off-by: Elias Naur --- app/os_windows.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/os_windows.go b/app/os_windows.go index 6ce3d0e4..0a057459 100644 --- a/app/os_windows.go +++ b/app/os_windows.go @@ -628,7 +628,6 @@ func (w *window) readClipboard() error { } func (w *window) Configure(options []Option) { - oldConfig := w.config dpi := windows.GetSystemDPI() metric := configForDPI(dpi) w.config.apply(metric, options) @@ -689,10 +688,7 @@ func (w *window) Configure(options []Option) { windows.SetWindowPos(w.hwnd, 0, x, y, width, height, swpStyle) windows.ShowWindow(w.hwnd, showMode) - // A config event is sent to the main event loop whenever the configuration is changed - if oldConfig != w.config { - w.w.Event(ConfigEvent{Config: w.config}) - } + w.w.Event(ConfigEvent{Config: w.config}) } func (w *window) WriteClipboard(s string) {