Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update robtk/pugl
  • Loading branch information
x42 committed Jan 4, 2023
1 parent 9129f8a commit 30f9f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions pugl/pugl_osx.mm
Expand Up @@ -211,11 +211,6 @@ deleting the view (?), so we must have reset puglview to NULL when

puglview->width = width;
puglview->height = height;

[self removeTrackingArea:trackingArea];
[trackingArea release];
trackingArea = nil;
[self updateTrackingAreas];
}
}

Expand Down Expand Up @@ -246,7 +241,6 @@ - (void) drawRect:(NSRect)rect
-(void)updateTrackingAreas
{
if (trackingArea != nil) {
return;
[self removeTrackingArea:trackingArea];
[trackingArea release];
}
Expand All @@ -259,11 +253,11 @@ -(void)updateTrackingAreas
owner:self
userInfo:nil];
[self addTrackingArea:trackingArea];
[super updateTrackingAreas];
}

- (void)mouseEntered:(NSEvent*)theEvent
{
[self updateTrackingAreas];
if (puglview->focusFunc) {
puglview->focusFunc(puglview, true);
}
Expand Down Expand Up @@ -318,7 +312,6 @@ - (void) mouseUp:(NSEvent*)event
puglview->mods = getModifiers(puglview, event);
puglview->mouseFunc(puglview, 1, false, loc.x, puglview->height - loc.y);
}
[self updateTrackingAreas];
}

- (void) rightMouseDown:(NSEvent*)event
Expand Down Expand Up @@ -364,7 +357,6 @@ - (void) scrollWheel:(NSEvent*)event
puglview->mods = getModifiers(puglview, event);
puglview->scrollFunc(puglview, loc.x, puglview->height - loc.y, [event deltaX], [event deltaY]);
}
[self updateTrackingAreas];
}

- (void) keyDown:(NSEvent*)event
Expand Down
2 changes: 1 addition & 1 deletion robtk/README
@@ -1 +1 @@
exported https://github.com/x42/robtk.git v0.8.1-6-g1e82c83
exported https://github.com/x42/robtk.git v0.8.2-1-ga22c6b1

0 comments on commit 30f9f4d

Please sign in to comment.