HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
571 stars 46 forks source link

support windows visibility events #204

Open i10416 opened 2 years ago

i10416 commented 2 years ago

I temporarily named event as EventWindowAppear/Disappear, but I think there would be better candidates.

Which do you think is better for visibility event name?

JWM notifies when window's visibility changes. In Windows, visibility is based mainly on WS_VISIBLE property and updated by ShowWindow function and ShowOwnedPopups function.

see

tonsky commented 2 years ago

How does it relate to minimize/maximize/restore (we already have those)? Minimize == hidden? Restore == visible? Or is there a subtle difference?

i10416 commented 2 years ago

How does it relate to minimize/maximize/restore (we already have those)? Minimize == hidden? Restore == visible? Or is there a subtle difference?

It is not related to actual window visibility. It reacts to ShowWindow function and ShowOwnedPopups function, but does not react to manually resizing(hiding) window🤔