Skip to content

Commit 2c187cc

Browse files
committed
PUGL: remove redundant tracking area upates to fix problems on macOS 14
Fixes #28. Signed-off-by: Stefan Westerfeld <[email protected]>
1 parent 1b843c1 commit 2c187cc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

glui/pugl/pugl_osx.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ - (NSPoint) eventLocation:(NSEvent*)event
311311

312312
- (void)mouseEntered:(NSEvent*)theEvent
313313
{
314-
[self updateTrackingAreas];
315314
}
316315

317316
- (void)mouseExited:(NSEvent*)theEvent
@@ -389,7 +388,6 @@ - (void) mouseUp:(NSEvent*)event
389388
(unsigned)[event buttonNumber] + 1
390389
};
391390
puglDispatchEvent(puglview, (PuglEvent*)&ev);
392-
[self updateTrackingAreas];
393391
}
394392

395393
- (void) rightMouseDown:(NSEvent*)event
@@ -414,8 +412,6 @@ - (void) otherMouseUp:(NSEvent*)event
414412

415413
- (void) scrollWheel:(NSEvent*)event
416414
{
417-
[self updateTrackingAreas];
418-
419415
const NSPoint wloc = [self eventLocation:event];
420416
const NSPoint rloc = [NSEvent mouseLocation];
421417
const PuglEventScroll ev = {
@@ -432,7 +428,6 @@ - (void) scrollWheel:(NSEvent*)event
432428
[event deltaY]
433429
};
434430
puglDispatchEvent(puglview, (PuglEvent*)&ev);
435-
[self updateTrackingAreas];
436431
}
437432

438433
- (void) keyDown:(NSEvent*)event
@@ -650,6 +645,8 @@ - (void) flagsChanged:(NSEvent*)event
650645
}
651646
}
652647

648+
[impl->glview updateTrackingAreas];
649+
653650
return 0;
654651
}
655652

0 commit comments

Comments
 (0)