зеркало из https://github.com/mozilla/pjs.git
b=498143 Flash in background tab consumes input events. r=enndeakin
--HG-- extra : rebase_source : 18f4ae2d37f41615dc46b7f9db19e8d579496421
This commit is contained in:
Родитель
715c4df4dd
Коммит
0327740c29
|
@ -1421,12 +1421,7 @@ nsWindow::SetFocus(PRBool aRaise)
|
|||
IMESetFocus();
|
||||
#endif
|
||||
|
||||
LOGFOCUS((" widget now has focus - dispatching events [%p]\n",
|
||||
(void *)this));
|
||||
|
||||
DispatchActivateEvent();
|
||||
|
||||
LOGFOCUS((" done dispatching events in SetFocus() [%p]\n",
|
||||
LOGFOCUS((" widget now has focus in SetFocus() [%p]\n",
|
||||
(void *)this));
|
||||
|
||||
return NS_OK;
|
||||
|
@ -2769,13 +2764,13 @@ nsWindow::OnButtonPressEvent(GtkWidget *aWidget, GdkEventButton *aEvent)
|
|||
mLastButtonPressTime = aEvent->time;
|
||||
mLastButtonReleaseTime = 0;
|
||||
|
||||
// check to see if we should rollup
|
||||
nsWindow *containerWindow = GetContainerWindow();
|
||||
if (!gFocusWindow && containerWindow) {
|
||||
gFocusWindow = this;
|
||||
DispatchActivateEvent();
|
||||
containerWindow->DispatchActivateEvent();
|
||||
}
|
||||
|
||||
// check to see if we should rollup
|
||||
PRBool rolledUp = check_for_rollup(aEvent->window, aEvent->x_root,
|
||||
aEvent->y_root, PR_FALSE);
|
||||
if (gConsumeRollupEvent && rolledUp)
|
||||
|
|
Загрузка…
Ссылка в новой задаче