From 9018c071310eadd7d5c12e95d922e4e9869ae3f4 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 16 Jul 2024 16:28:17 +0200 Subject: [PATCH] Revert "app: [Windows] suppress double-click behaviour for custom decorations" This reverts commit 82cbb7b8da651053f1700db58fc1012103327d20. As Egon Elbre points out in https://todo.sr.ht/~eliasnaur/gio/600#event-377179 this is not the right fix. --- app/internal/windows/windows.go | 1 - app/os_windows.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/app/internal/windows/windows.go b/app/internal/windows/windows.go index a8b6f7d0..be4b8084 100644 --- a/app/internal/windows/windows.go +++ b/app/internal/windows/windows.go @@ -266,7 +266,6 @@ const ( WM_MOUSEWHEEL = 0x020A WM_MOUSEHWHEEL = 0x020E WM_NCACTIVATE = 0x0086 - WM_NCLBUTTONDBLCLK = 0x00A3 WM_NCHITTEST = 0x0084 WM_NCCALCSIZE = 0x0083 WM_PAINT = 0x000F diff --git a/app/os_windows.go b/app/os_windows.go index 35bf9ef1..7c950a5a 100644 --- a/app/os_windows.go +++ b/app/os_windows.go @@ -326,12 +326,6 @@ func windowProc(hwnd syscall.Handle, msg uint32, wParam, lParam uintptr) uintptr mi := windows.GetMonitorInfo(w.hwnd) szp.Rgrc[0] = mi.WorkArea return 0 - case windows.WM_NCLBUTTONDBLCLK: - if !w.config.Decorated { - // Override Windows behaviour when we - // draw decorations. - return 0 - } case windows.WM_PAINT: w.draw(true) case windows.WM_SIZE: