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

Wayland support for set_visible? #2388

Closed
flukejones opened this issue Jul 23, 2022 · 4 comments
Closed

Wayland support for set_visible? #2388

flukejones opened this issue Jul 23, 2022 · 4 comments

Comments

@flukejones
Copy link

Apologies, this is my first foray in to use of winit via egui. I'm in need of set_visible for an app that can run in the background - but this feature doesn't work on wayland.

Is there any plan to add support for set_visible in wayland?

@notgull
Copy link
Member

notgull commented Jul 23, 2022

We should be able to use set_hidden in order to implement this.

@maroider
Copy link
Member

maroider commented Jul 23, 2022

What sort of application are you making? As far as I'm aware, you won't get much of any input events from Winit on Wayland if your window isn't focused (or visible, even).

@rdrpenguin04
Copy link

The goal is to be able to hide the window and show it later from a tray icon click without entirely restarting the program

@kchibisov
Copy link
Member

We should be able to use set_hidden in order to implement this.

No that's irrelevant, decorations have nothing to do with that.

The goal is to be able to hide the window and show it later from a tray icon click without entirely restarting the program

From what I know this is usually done by destroying the window and creating it over on reaction to some dbus event. The only way to make window invisible on Wayland is by dropping it and creating later on. There's no way to do it differently, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants