Browse Source
On MacOS, the Quit shortcut (Command+Q/Ctrl+Q) is intercepted directly by AppKit which emits an event on the NSApplicationDelegate bound to NSApp.delegate. The event is caught by Qt Cocoa integration which sends a closeEvent to the QApplication, and stops the Qt eventloop if the closeEvent pass through. This is problematic since we don't want to kill the eventloop right away, and it provides a different behaviour when closing than other ways (SIGINT/closing the window) where we redirect to libvlc_Quit() and handle the termination of interfaces from their Deactivation callback directly. Instead this commit install a handler to catch Qt's closeEvent, on every platforms, so as to redirect it to libvlc_Quit(); Co-authored-by: Pierre Lamot <pierre@videolabs.io>pull/183/head
committed by
Felix Paul Kühne
1 changed files with 28 additions and 0 deletions
Loading…
Reference in new issue