diff options
Diffstat (limited to 'linden/indra/llwindow/llwindowmacosx.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindowmacosx.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/linden/indra/llwindow/llwindowmacosx.cpp b/linden/indra/llwindow/llwindowmacosx.cpp index b2a1ccf..0c5d6ed 100644 --- a/linden/indra/llwindow/llwindowmacosx.cpp +++ b/linden/indra/llwindow/llwindowmacosx.cpp | |||
@@ -2177,6 +2177,10 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e | |||
2177 | case kEventMouseButtonSecondary: | 2177 | case kEventMouseButtonSecondary: |
2178 | mCallbacks->handleRightMouseDown(this, outCoords, mask); | 2178 | mCallbacks->handleRightMouseDown(this, outCoords, mask); |
2179 | break; | 2179 | break; |
2180 | |||
2181 | case kEventMouseButtonTertiary: | ||
2182 | mCallbacks->handleMiddleMouseDown(this, outCoords, mask); | ||
2183 | break; | ||
2180 | } | 2184 | } |
2181 | result = noErr; | 2185 | result = noErr; |
2182 | break; | 2186 | break; |
@@ -2199,6 +2203,10 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e | |||
2199 | case kEventMouseButtonSecondary: | 2203 | case kEventMouseButtonSecondary: |
2200 | mCallbacks->handleRightMouseUp(this, outCoords, mask); | 2204 | mCallbacks->handleRightMouseUp(this, outCoords, mask); |
2201 | break; | 2205 | break; |
2206 | |||
2207 | case kEventMouseButtonTertiary: | ||
2208 | mCallbacks->handleMiddleMouseUp(this, outCoords, mask); | ||
2209 | break; | ||
2202 | } | 2210 | } |
2203 | result = noErr; | 2211 | result = noErr; |
2204 | break; | 2212 | break; |
@@ -2231,7 +2239,13 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e | |||
2231 | 2239 | ||
2232 | case kEventClassWindow: | 2240 | case kEventClassWindow: |
2233 | switch(evtKind) | 2241 | switch(evtKind) |
2234 | { | 2242 | { |
2243 | case kEventWindowActivated: | ||
2244 | mCallbacks->handleFocus(this); | ||
2245 | break; | ||
2246 | case kEventWindowDeactivated: | ||
2247 | mCallbacks->handleFocusLost(this); | ||
2248 | break; | ||
2235 | case kEventWindowBoundsChanging: | 2249 | case kEventWindowBoundsChanging: |
2236 | { | 2250 | { |
2237 | Rect currentBounds; | 2251 | Rect currentBounds; |