-
Notifications
You must be signed in to change notification settings - Fork 29
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
Window closing does not work #226
Comments
From apps/desktop/src-tauri/src/main.rs:
When overlayed gets a Window CloseRequested why does it just flat out prevent the close? |
On GNOME the "App Indicators" or "Tray Icons" are not shown by default. If overlayed is in it's pinned state the user has no access to togging the pinned status or quitting the application. Quitting works with the "Quit Overlayed" button that is displayed if there is a error connecting to discord or with the "Quit" button from the Tray Icon and both are not always displayed. The proper way to handle this would probably be to add a toggle button to the GNOME Quick Settings Menu, which would need some effort. Regardless of Tray Icons vs Quick Settings the "Quit" button from the dash (the menu bar on the bottom with your pinned and open applications) and the "X" button you get from hovering over the window in the window overview should work and actually close the window. Maybe even add an "X" button to the right of the settings button just as the settings window already has one. |
Looking at this bit in particular, I feel like the intended behavior is for it to only call Using the following code instead seems to make it work as expected but I have not set up a PR since I'm not sure if this is the intended behavior or if what is already present is desired. if label == SETTINGS_WINDOW_NAME {
let win = app.get_webview_window(label.as_str()).unwrap();
win.hide().unwrap();
}
// Only close if it's the main window that received the close request
if label == MAIN_WINDOW_NAME {
app.exit(0);
} else {
api.prevent_close();
} |
See Issue overlayeddev#226 in upstream repo
I will note (on KDE at least) that this issue prevents the desktop from shutting down by itself because overlayed has to be closed manually/force closed. |
Describe the bug
Closing the window with the "Quit" button as well as the "X" button on GNOME does not actually close the window.
Desktop:
Additional context
I can close the window only when I terminate the process.
Happens consistently both on Windows and Linux with GNOME (both Wayland and X11).
The text was updated successfully, but these errors were encountered: