Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make UI appear on Qt::ApplicationActive for macOS #1523

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

jkl1337
Copy link
Contributor

@jkl1337 jkl1337 commented Nov 22, 2024

See audacious-media-player/audacious-plugins#174

Sorry, forgot about skins since I don't typically use them. Since the signal handler is sufficiently decoupled via aud_ui_show anyway, I was thinking it would be cleaner to just hook this directly where the QApplication is instantiated along with the other platform specific code.

If the status icon plugin is used with close to system tray the UI main
window is closed. On macOS there is not an easy way to make it reappear.
The system tray activation trigger is disabled on macOS. This is for
good reason due to one button mouse support and that this usually is
intended to open the status/tray menu. Instead we should handle the
application state change activate signal which will fire when the dock
icon is clicked (it abstracts app delegate
applicationShouldHandleReopen).

This was originally fixed with
audacious-media-player/audacious-plugins#174 but it is cleaner to
decouple from any one window/skin implementation via connecting
aud_ui_show to the QApplication directly.
jkl1337 added a commit to jkl1337/audacious-plugins that referenced this pull request Nov 22, 2024
This reverts commit 2f2d537.

Better to handle this in libaudqt directly on the QApplication
so that it is main window/skin agnostic.

See audacious-media-player/audacious#1523
@kaniini kaniini merged commit 0ed6a84 into audacious-media-player:master Nov 22, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants