winemac: Ignore window dragging if window is disabled, maximized, minimized, or hidden.

This commit is contained in:
Ken Thomases 2014-01-28 15:50:52 -06:00 committed by Alexandre Julliard
parent a86cfc683d
commit 0d23637e0d
1 changed files with 4 additions and 0 deletions

View File

@ -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;