summaryrefslogtreecommitdiff
path: root/src/win32.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-13 15:06:19 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-13 15:06:19 +0200
commit25b0f18eaf4ad71bf4a5fdb40465768a183ddc4e (patch)
treed7dcb898f33a1ca4fd7477e79ada62a07e5455b9 /src/win32.c
parent95df7abfb8ff46fba1bda1e696184682a5766fda (diff)
Windows: Custom frame app icon, finishing touches
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c2
1 files changed, 2 insertions, 0 deletions
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) {
80 case WM_ACTIVATE: { 80 case WM_ACTIVATE: {
81 //LONG style = GetWindowLong(hwnd, GWL_STYLE); 81 //LONG style = GetWindowLong(hwnd, GWL_STYLE);
82 //SetWindowLog(hwnd, GWL_STYLE, style); 82 //SetWindowLog(hwnd, GWL_STYLE, style);
83 iZap(winDown_); /* may have hidden the up event */
83 break; 84 break;
84 } 85 }
85 case WM_KEYDOWN: { 86 case WM_KEYDOWN: {
@@ -148,6 +149,7 @@ void processNativeEvent_Win32(const struct SDL_SysWMmsg *msg, iWindow *window) {
148 iInt2 pos = init_I2(point.x, point.y); 149 iInt2 pos = init_I2(point.x, point.y);
149 switch (hitTest_Window(window, pos)) { 150 switch (hitTest_Window(window, pos)) {
150 case SDL_HITTEST_DRAGGABLE: 151 case SDL_HITTEST_DRAGGABLE:
152 window->ignoreClick = iTrue; /* avoid hitting something inside the window */
151 postCommandf_App("window.%s", 153 postCommandf_App("window.%s",
152 snap_Window(window) ? "restore" : "maximize toggle:1"); 154 snap_Window(window) ? "restore" : "maximize toggle:1");
153 break; 155 break;