AutoRaise icon indicating copy to clipboard operation
AutoRaise copied to clipboard

Autoraise only after minimize/close most front app

Open swenak opened this issue 1 year ago • 4 comments

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 avatar Apr 27 '24 00:04 swenak

@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 avatar Apr 27 '24 08:04 sbmpost

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.

swenak avatar May 02 '24 06:05 swenak

@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.

sbmpost avatar May 07 '24 09:05 sbmpost

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

swenak avatar May 09 '24 01:05 swenak