From 448f8b324301a133e2bc735b41af678029726aba Mon Sep 17 00:00:00 2001 From: Adi Oanca Date: Sat, 3 Sep 2005 18:08:49 +0000 Subject: [PATCH] update. added some code to support BView::SetMouseEventMask. code inactive ATM. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14107 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/RootLayer.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/servers/app/RootLayer.cpp b/src/servers/app/RootLayer.cpp index 379b0e57a0..04ea10afbd 100644 --- a/src/servers/app/RootLayer.cpp +++ b/src/servers/app/RootLayer.cpp @@ -1793,6 +1793,24 @@ RootLayer::SetMouseEventMaskLayer(Layer *lay, uint32 mask, uint32 options) Lock(); +#if 0 // to be removed when the new "event" stuff is ready + // TODO: fEventMaskLayer to be changed in fMouseEventLayer + fEventMaskLayer = lay; + if (mask & B_POINTER_EVENTS) { + if (fMouseEventsLayerList.HasItem(lay)) + fMouseEventsLayerList.AddItem(lay); + } + + if (mask & B_KEYBOARD_EVENTS) { + if (fKeyboardEventsLayerList.HasItem(lay)) + fKeyboardEventsLayerList.AddItem(lay); + } + + // TODO: set options!!! + // B_NO_POINTER_HISTORY How? By telling to the input_server? + // B_SUSPEND_VIEW_FOCUS + // B_LOCK_WINDOW_FOCUS +#else if (fEventMaskLayer && fEventMaskLayer != lay) { fprintf(stderr, "WARNING: fEventMaskLayer already set and different than the required one!\n"); returnValue = false; @@ -1800,7 +1818,7 @@ RootLayer::SetMouseEventMaskLayer(Layer *lay, uint32 mask, uint32 options) fEventMaskLayer = lay; // TODO: use this mask and options! } - +#endif Unlock(); return returnValue;