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:
@ -351,7 +351,11 @@ message_translate (ClutterBackend *backend,
|
||||
switch (msg->message)
|
||||
{
|
||||
case WM_SIZE:
|
||||
if (!stage_win32->is_foreign_win)
|
||||
if (!stage_win32->is_foreign_win
|
||||
/* Ignore size changes resulting from the stage being
|
||||
minimized - otherwise the window size will be set to
|
||||
0,0 */
|
||||
&& msg->wParam != SIZE_MINIMIZED)
|
||||
{
|
||||
WORD new_width = LOWORD (msg->lParam);
|
||||
WORD new_height = HIWORD (msg->lParam);
|
||||
|
Reference in New Issue
Block a user