diff --git a/gdk/win32/gdkgeometry-win32.c b/gdk/win32/gdkgeometry-win32.c index c16920886e..10b987151b 100644 --- a/gdk/win32/gdkgeometry-win32.c +++ b/gdk/win32/gdkgeometry-win32.c @@ -59,17 +59,12 @@ _gdk_window_move_resize_child (GdkWindow *window, gint height) { GdkWindowImplWin32 *impl; - gboolean is_move; - gboolean is_resize; g_return_if_fail (window != NULL); g_return_if_fail (GDK_IS_WINDOW (window)); impl = GDK_WINDOW_IMPL_WIN32 (window->impl); - is_move = (x - window->x != 0) && (y - window->y != 0); - is_resize = window->width != width && window->height != height; - GDK_NOTE (MISC, g_print ("_gdk_window_move_resize_child: %s@%+d%+d %dx%d@%+d%+d\n", _gdk_win32_window_description (window), window->x, window->y, width, height, x, y)); @@ -93,19 +88,15 @@ _gdk_window_move_resize_child (GdkWindow *window, _gdk_win32_window_tmp_unset_bg (window, TRUE); GDK_NOTE (MISC, g_print ("... SetWindowPos(%p,NULL,%d,%d,%d,%d," - "NOACTIVATE|NOZORDER%s%s)\n", + "NOACTIVATE|NOZORDER)\n", GDK_WINDOW_HWND (window), window->x + window->parent->abs_x, window->y + window->parent->abs_y, - width, height, - (is_move ? "" : "|NOMOVE"), - (is_resize ? "" : "|NOSIZE"))); + width, height)); API_CALL (SetWindowPos, (GDK_WINDOW_HWND (window), NULL, window->x + window->parent->abs_x, window->y + window->parent->abs_y, width, height, - SWP_NOACTIVATE | SWP_NOZORDER | - (is_move ? 0 : SWP_NOMOVE) | - (is_resize ? 0 : SWP_NOSIZE))); + SWP_NOACTIVATE | SWP_NOZORDER)); _gdk_win32_window_tmp_reset_bg (window, TRUE); }