mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fixes for bugs:
74445 - Add call to DdeUnaccessData (r=pchen, sr=blake) 103849 - Use ::IsIconic to check if window is minimized before restoring (r=matt, sr=blake)
This commit is contained in:
parent
aea8ff1235
commit
7a0407bd6d
@ -142,8 +142,10 @@ activateWindow( nsIDOMWindowInternal *win ) {
|
||||
// Try to get native window handle.
|
||||
HWND hwnd = hwndForDOMWindow( win );
|
||||
if ( hwnd ) {
|
||||
// Restore the window in case it is minimized.
|
||||
::ShowWindow( hwnd, SW_RESTORE );
|
||||
// Restore the window if it is minimized.
|
||||
if ( ::IsIconic( hwnd ) ) {
|
||||
::ShowWindow( hwnd, SW_RESTORE );
|
||||
}
|
||||
// Use the OS call, if possible.
|
||||
::SetForegroundWindow( hwnd );
|
||||
} else {
|
||||
@ -1262,6 +1264,8 @@ nsNativeAppSupportWin::HandleDDENotification( UINT uType, // transaction t
|
||||
printf( "Handling dde request: [%s]...\n", (char*)request );
|
||||
#endif
|
||||
HandleRequest( request );
|
||||
// Release the data.
|
||||
DdeUnaccessData( hdata );
|
||||
result = (HDDEDATA)DDE_FACK;
|
||||
} else {
|
||||
result = (HDDEDATA)DDE_FNOTPROCESSED;
|
||||
|
Loading…
Reference in New Issue
Block a user