HumbleUI / JWM

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

BUG (Mac): Enabling "on top" in examples app hides window in Mission Control #258

Open tonsky opened 1 year ago

tonsky commented 1 year ago

Mission Control meaning what you get when pressing "CTRL+UP" or swiping three fingers up on the touch pad.

Originally reported at https://github.com/HumbleUI/HumbleUI/issues/61 by @lambdaschmied2

tonsky commented 1 year ago

Seems to be a native macOS behavior https://github.com/electron/electron/issues/6959 that Chrome/Electron still somehow manage to work around https://github.com/electron/electron/blob/d092e6bda4c7ba840f76ef835135f6ac94e02803/shell/browser/native_window_mac.mm#L283-L289

bumfo commented 1 year ago

Aren't top windows hidden the intended behavior of mission control? I quite like this behavior because it hides tool windows (which are often set top). I think a new option should be available if a workaround is made, e.g. setHideFromMissionControl.

A better abstraction would be adding tool & main window separation, and hide all tool windows automatically.

mushan0x0 commented 1 year ago

Aren't top windows hidden the intended behavior of mission control? I quite like this behavior because it hides tool windows (which are often set top). I think a new option should be available if a workaround is made, e.g. setHideFromMissionControl.

A better abstraction would be adding tool & main window separation, and hide all tool windows automatically.

I agree with you, but it doesn't seem to be hiding now, is this a bug? Because I created an alwaysOnTop window with a type of "panel", and I wanted it to be hidden in Mission Control, but it's not hiding in version electron26.