diff options
Diffstat (limited to 'src/win32.c')
-rw-r--r-- | src/win32.c | 2 |
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; |