From 77d6c93e29a3827c5b2b621ea16e26f5ea15012d Mon Sep 17 00:00:00 2001 From: Serhii Bykov Date: Fri, 27 Feb 2026 22:37:59 +0100 Subject: [PATCH] macosx: replace deprecated NSRightMouse{Down,Up} with NSEventType variants --- modules/gui/macosx/windows/video/VLCVoutView.m | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/gui/macosx/windows/video/VLCVoutView.m b/modules/gui/macosx/windows/video/VLCVoutView.m index 0c2e33d7f1..fdfae7a928 100644 --- a/modules/gui/macosx/windows/video/VLCVoutView.m +++ b/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]; }