зеркало из https://github.com/mozilla/pjs.git
bug 230103 patch by sergei_d@fi.tartu.ee (Sergei Dolgov) r=biesi
Looper must be locked in nsWindow::CaptureMouse() method
This commit is contained in:
Родитель
dd4276824f
Коммит
d1b2e09439
|
@ -773,12 +773,13 @@ NS_METHOD nsWindow::Show(PRBool bState)
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
NS_METHOD nsWindow::CaptureMouse(PRBool aCapture)
|
NS_METHOD nsWindow::CaptureMouse(PRBool aCapture)
|
||||||
{
|
{
|
||||||
if (mView)
|
if (mView && mView->LockLooper())
|
||||||
{
|
{
|
||||||
if (PR_TRUE == aCapture)
|
if (PR_TRUE == aCapture)
|
||||||
mView->SetEventMask(B_POINTER_EVENTS);
|
mView->SetEventMask(B_POINTER_EVENTS);
|
||||||
else
|
else
|
||||||
mView->SetEventMask(0);
|
mView->SetEventMask(0);
|
||||||
|
mView->UnlockLooper();
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче