Skip to content

Commit

Permalink
win32u: Implement EVENT_OBJECT_LOCATIONCHANGE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Esme Povirk authored and ivyl committed May 3, 2024
1 parent ca3dac2 commit a854a85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dlls/win32u/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -3545,6 +3545,10 @@ BOOL set_window_pos( WINDOWPOS *winpos, int parent_x, int parent_y )
winpos->cy = new_window_rect.bottom - new_window_rect.top;
send_message( winpos->hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)winpos );
}

if ((winpos->flags & (SWP_NOMOVE|SWP_NOSIZE)) != (SWP_NOMOVE|SWP_NOSIZE))
NtUserNotifyWinEvent( EVENT_OBJECT_LOCATIONCHANGE, winpos->hwnd, OBJID_WINDOW, 0 );

ret = TRUE;
done:
SetThreadDpiAwarenessContext( context );
Expand Down

0 comments on commit a854a85

Please sign in to comment.