Skip to content
  • Neil Roberts's avatar
    win32: Never pass SWP_NOSIZE or SWP_NOMOVE to SetWindowPos · 7445a59a
    Neil Roberts authored and Alexander Larsson's avatar Alexander Larsson committed
    In _gdk_window_move_resize_child it tries to decide whether to pass
    SWP_NOSIZE and SWP_NOMOVE based on whether the new size and position
    is different from the window's existing position. However it seems
    that GDK now ends up updating the window's position before calling
    _gdk_window_move_resize_child so this would mean it would think the
    window never changes size or position so SWP_NOSIZE|SWP_NOMOVE would
    always be set. This causes child windows to never be resized.
    
    This patch changes it so that it never passes either flag to
    SetWindowPos. I don't know whether this will cause any side effects
    but you'd think it shouldn't do any harm to reassert the current size.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=628049
    
    
    
    Signed-off-by: default avatarHans Breuer <hans@breuer.org>
    7445a59a