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

Autoraise only after minimize/close most front app #207

Open
swenak opened this issue Apr 27, 2024 · 4 comments
Open

Autoraise only after minimize/close most front app #207

swenak opened this issue Apr 27, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@swenak
Copy link

swenak commented Apr 27, 2024

Hi,

what about to add option to autoraise only after customer press minimize/close button on most front window like in MS Windows systems?

Thanks.

@swenak swenak changed the title Autorise only after minimize/close most front app Autoraise only after minimize/close most front app Apr 27, 2024
@sbmpost
Copy link
Owner

sbmpost commented Apr 27, 2024

@swenak

Interesting idea. Raise/focus only just after an application lost focus. I'm not sure if there is an OS event for this. This requires some investigation.

Related: #199

@sbmpost sbmpost added the enhancement New feature or request label Apr 29, 2024
@swenak
Copy link
Author

swenak commented May 2, 2024

Maybe only after that buttons are pressed (if exist event for this), or only when mouse button press was on specified rectangle with that buttons in window.

@sbmpost
Copy link
Owner

sbmpost commented May 7, 2024

@swenak

It seems there is a deactivated notification. However this is only called when AutoRaise (or the user) activates another window. Ideally, when minimizing a window, we also get the notification, but that is not happening. A quick look over the Apple APIs doesn't reveal notifications for app minimization. Individual applications can detect minimimization with the applicationDidChangeOcclusionState event, but this is not usable for AutoRaise.

@swenak
Copy link
Author

swenak commented May 9, 2024

So, maybe other solution, based on window numbers? Something like this: https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants