diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2026-02-25 03:00:09 +0200 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-03-02 17:37:12 +0200 |
| commit | c94a118af80367c3f73cfe93559185c8f2cf3750 (patch) | |
| tree | dfc06d2a0863960de188093c47b7ab6c02919936 /indra/newview/llappdelegate-objc.mm | |
| parent | ed418397a17573f0bf72991cb8348558e1049f14 (diff) | |
#5084 Fix mac's watchdog not catching test case
This happens because on mac watchdog quits at the end of frame. And events get handled outside the frame. The might be other cases that need similar handling.
Diffstat (limited to 'indra/newview/llappdelegate-objc.mm')
| -rw-r--r-- | indra/newview/llappdelegate-objc.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llappdelegate-objc.mm b/indra/newview/llappdelegate-objc.mm index 0b3d0355a2..d3aac5a43e 100644 --- a/indra/newview/llappdelegate-objc.mm +++ b/indra/newview/llappdelegate-objc.mm @@ -395,11 +395,13 @@ struct AttachmentInfo - (void)sendEvent:(NSEvent *)event { + startWatchdog("sendEvent"); // events are outside pumpMainLoop [super sendEvent:event]; if ([event type] == NSEventTypeKeyUp && ([event modifierFlags] & NSEventModifierFlagCommand)) { [[self keyWindow] sendEvent:event]; } + stopWatchdog(); // leaving scope } @end |
