mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 20:28:26 +00:00
win32u: Asynchronously send the WM_DISPLAYCHANGE to the desktop window.
This commit is contained in:
parent
a93edc8e6e
commit
4e8844529c
|
@ -3047,7 +3047,7 @@ LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
|
|||
}
|
||||
|
||||
/* see SendNotifyMessageW */
|
||||
static BOOL send_notify_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, BOOL ansi )
|
||||
BOOL send_notify_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, BOOL ansi )
|
||||
{
|
||||
struct send_message_info info;
|
||||
|
||||
|
|
|
@ -2487,8 +2487,8 @@ static LONG apply_display_settings( const WCHAR *devname, const DEVMODEW *devmod
|
|||
user_driver->pGetCurrentDisplaySettings( adapter->dev.device_name, ¤t_mode );
|
||||
adapter_release( adapter );
|
||||
|
||||
send_message( NtUserGetDesktopWindow(), WM_DISPLAYCHANGE, current_mode.dmBitsPerPel,
|
||||
MAKELPARAM( current_mode.dmPelsWidth, current_mode.dmPelsHeight ) );
|
||||
send_notify_message( NtUserGetDesktopWindow(), WM_DISPLAYCHANGE, current_mode.dmBitsPerPel,
|
||||
MAKELPARAM( current_mode.dmPelsWidth, current_mode.dmPelsHeight ), FALSE );
|
||||
send_message_timeout( HWND_BROADCAST, WM_DISPLAYCHANGE, current_mode.dmBitsPerPel,
|
||||
MAKELPARAM( current_mode.dmPelsWidth, current_mode.dmPelsHeight ),
|
||||
SMTO_ABORTIFHUNG, 2000, FALSE );
|
||||
|
|
|
@ -308,6 +308,7 @@ extern LRESULT send_internal_message_timeout( DWORD dest_pid, DWORD dest_tid, UI
|
|||
LPARAM lparam, UINT flags, UINT timeout,
|
||||
PDWORD_PTR res_ptr ) DECLSPEC_HIDDEN;
|
||||
extern LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) DECLSPEC_HIDDEN;
|
||||
extern BOOL send_notify_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, BOOL ansi ) DECLSPEC_HIDDEN;
|
||||
extern LRESULT send_message_timeout( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
|
||||
UINT flags, UINT timeout, BOOL ansi );
|
||||
|
||||
|
|
Loading…
Reference in a new issue