BView::SetEventMask() had no effect when called before AttachedToWindow().
This also fixes bug #620. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17802 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d367028c04
commit
66e114c429
@ -521,6 +521,13 @@ ServerWindow::_CreateLayerTree(BPrivate::LinkReceiver &link, ViewLayer **_parent
|
|||||||
newLayer->SetHidden(hidden);
|
newLayer->SetHidden(hidden);
|
||||||
newLayer->SetEventMask(eventMask, eventOptions);
|
newLayer->SetEventMask(eventMask, eventOptions);
|
||||||
|
|
||||||
|
if (eventMask != 0 || eventOptions != 0) {
|
||||||
|
fDesktop->UnlockSingleWindow();
|
||||||
|
fDesktop->EventDispatcher().AddListener(EventTarget(),
|
||||||
|
newLayer->Token(), eventMask, eventOptions);
|
||||||
|
fDesktop->LockSingleWindow();
|
||||||
|
}
|
||||||
|
|
||||||
DesktopSettings settings(fDesktop);
|
DesktopSettings settings(fDesktop);
|
||||||
ServerFont font;
|
ServerFont font;
|
||||||
settings.GetDefaultPlainFont(font);
|
settings.GetDefaultPlainFont(font);
|
||||||
|
Loading…
Reference in New Issue
Block a user