From 25b0f18eaf4ad71bf4a5fdb40465768a183ddc4e Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 13 Feb 2021 15:06:19 +0200 Subject: Windows: Custom frame app icon, finishing touches --- src/win32.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/win32.c') diff --git a/src/win32.c b/src/win32.c index 04080804..01ec73bf 100644 --- a/src/win32.c +++ b/src/win32.c @@ -80,6 +80,7 @@ void processNativeEvent_Win32(const struct SDL_SysWMmsg *msg, iWindow *window) { case WM_ACTIVATE: { //LONG style = GetWindowLong(hwnd, GWL_STYLE); //SetWindowLog(hwnd, GWL_STYLE, style); + iZap(winDown_); /* may have hidden the up event */ break; } case WM_KEYDOWN: { @@ -148,6 +149,7 @@ void processNativeEvent_Win32(const struct SDL_SysWMmsg *msg, iWindow *window) { iInt2 pos = init_I2(point.x, point.y); switch (hitTest_Window(window, pos)) { case SDL_HITTEST_DRAGGABLE: + window->ignoreClick = iTrue; /* avoid hitting something inside the window */ postCommandf_App("window.%s", snap_Window(window) ? "restore" : "maximize toggle:1"); break; -- cgit v1.2.3