mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 699885 part 1 - Ensure we dispatch 'deactivate' event to chrome window when we lose focus while changing to full-screen mode. r=roc
This commit is contained in:
parent
5559fb1d83
commit
e4244a4646
@ -5271,7 +5271,11 @@ bool nsWindow::ProcessMessage(UINT msg, WPARAM &wParam, LPARAM &lParam,
|
||||
break;
|
||||
|
||||
case WM_KILLFOCUS:
|
||||
if (sJustGotDeactivate) {
|
||||
if (sJustGotDeactivate || !wParam) {
|
||||
// Note: wParam is FALSE when the window has lost focus. Sometimes
|
||||
// We can receive WM_KILLFOCUS with !wParam while changing to
|
||||
// full-screen mode and we won't receive an WM_ACTIVATE/WA_INACTIVE
|
||||
// message, so inform the focus manager that we've lost focus now.
|
||||
result = DispatchFocusToTopLevelWindow(NS_DEACTIVATE);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user