[vlc-commits] [Git][videolan/vlc][master] macosx: replace deprecated NSRightMouse{Down, Up} with NSEventType variants
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Mar 3 15:00:18 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
77d6c93e by Serhii Bykov at 2026-03-03T14:45:42+00:00
macosx: replace deprecated NSRightMouse{Down,Up} with NSEventType variants
- - - - -
1 changed file:
- modules/gui/macosx/windows/video/VLCVoutView.m
Changes:
=====================================
modules/gui/macosx/windows/video/VLCVoutView.m
=====================================
@@ -172,10 +172,11 @@
} else if (o_event.clickCount == 2) {
[_playerController toggleFullscreen];
}
- } else if (([o_event type] == NSRightMouseDown) ||
+ } else if (([o_event type] == NSEventTypeRightMouseDown) ||
(([o_event type] == NSLeftMouseDown) &&
- ([o_event modifierFlags] & NSControlKeyMask)))
+ ([o_event modifierFlags] & NSControlKeyMask))) {
[NSMenu popUpContextMenu: VLCMain.sharedInstance.mainMenu.voutMenu withEvent: o_event forView: self];
+ }
[super mouseDown: o_event];
}
@@ -196,16 +197,16 @@
- (void)rightMouseDown:(NSEvent *)o_event
{
- if ([o_event type] == NSRightMouseDown)
- [NSMenu popUpContextMenu: VLCMain.sharedInstance.mainMenu.voutMenu withEvent: o_event forView: self];
+ if ([o_event type] == NSEventTypeRightMouseDown)
+ [NSMenu popUpContextMenu: VLCMain.sharedInstance.mainMenu.voutMenu withEvent: o_event forView: self];
[super mouseDown: o_event];
}
- (void)rightMouseUp:(NSEvent *)o_event
{
- if ([o_event type] == NSRightMouseUp)
- [NSMenu popUpContextMenu: VLCMain.sharedInstance.mainMenu.voutMenu withEvent: o_event forView: self];
+ if ([o_event type] == NSEventTypeRightMouseUp)
+ [NSMenu popUpContextMenu: VLCMain.sharedInstance.mainMenu.voutMenu withEvent: o_event forView: self];
[super mouseUp: o_event];
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/77d6c93e29a3827c5b2b621ea16e26f5ea15012d
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/77d6c93e29a3827c5b2b621ea16e26f5ea15012d
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list