Ken Thomases : winemac: Ignore window dragging if window is disabled, maximized, minimized, or hidden.
Alexandre Julliard
julliard at winehq.org
Wed Jan 29 14:53:32 CST 2014
Module: wine
Branch: master
Commit: 0d23637e0d53df541862d7c3d89a3ef8a884e7b2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0d23637e0d53df541862d7c3d89a3ef8a884e7b2
Author: Ken Thomases <ken at codeweavers.com>
Date: Tue Jan 28 15:50:52 2014 -0600
winemac: Ignore window dragging if window is disabled, maximized, minimized, or hidden.
---
dlls/winemac.drv/window.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index 838a1b6..259552e 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -2153,11 +2153,15 @@ void macdrv_window_restore_requested(HWND hwnd)
*/
void macdrv_window_drag_begin(HWND hwnd)
{
+ DWORD style = GetWindowLongW(hwnd, GWL_STYLE);
struct macdrv_win_data *data;
MSG msg;
TRACE("win %p\n", hwnd);
+ if (style & (WS_DISABLED | WS_MAXIMIZE | WS_MINIMIZE)) return;
+ if (!(style & WS_VISIBLE)) return;
+
if (!(data = get_win_data(hwnd))) return;
if (data->being_dragged) goto done;
More information about the wine-cvs
mailing list