Bug 1100 - WM_SIZE not handled correctly, user_resize and
window_style correction. * clutter/win32/clutter-stage-win32.c (get_window_style): Remove the WS_MAXIMIZEBOX style if the stage isn't resizable. (clutter_stage_win32_set_user_resize): Queue a redraw of the window frame when the user_resize property is changed. * clutter/win32/clutter-event-win32.c (message_translate): Don't update the size of the stage when handling WM_SIZE messages that result from the stage being minimized. Thanks to Roman Yazmin.
This commit is contained in:
@ -258,7 +258,7 @@ get_window_style (ClutterStageWin32 *stage_win32)
|
||||
else if (clutter_stage_get_user_resizable (wrapper))
|
||||
return WS_OVERLAPPEDWINDOW;
|
||||
else
|
||||
return WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME;
|
||||
return WS_OVERLAPPEDWINDOW & ~WS_THICKFRAME & ~WS_MAXIMIZEBOX;
|
||||
}
|
||||
|
||||
static void
|
||||
@ -272,6 +272,8 @@ clutter_stage_win32_set_user_resize (ClutterStageWindow *stage_window,
|
||||
SetWindowLongW (hwnd, GWL_STYLE,
|
||||
get_window_style (CLUTTER_STAGE_WIN32 (stage_window))
|
||||
| (old_style & WS_VISIBLE));
|
||||
/* Queue a redraw of the frame */
|
||||
RedrawWindow (hwnd, NULL, NULL, RDW_FRAME | RDW_INVALIDATE);
|
||||
}
|
||||
|
||||
static ClutterActor *
|
||||
|
Reference in New Issue
Block a user