Make corner mode work on GNOME#6
Open
Aelerinya wants to merge 1 commit into
Open
Conversation
Aelerinya
commented
Mar 1, 2026
Comment on lines
+146
to
+160
| // On Linux, disable Tauri's client-side decorations before the window is shown. | ||
| // On GNOME/Wayland the xdg-decoration protocol negotiates decoration mode at | ||
| // window-map time, so this must happen here — dynamic setDecorations() calls on | ||
| // a visible window are silently ignored by the compositor. | ||
| // On other Linux WMs (Sway, KDE, XFCE, i3…) the WM adds its own server-side | ||
| // decorations when it sees an undecorated window, so users still get a title bar. | ||
| #[cfg(target_os = "linux")] | ||
| { | ||
| if let Some(window) = app.get_webview_window("main") { | ||
| if let Err(e) = window.set_decorations(false) { | ||
| log::warn!("Failed to disable window decorations on Linux: {}", e); | ||
| } | ||
| } | ||
| } | ||
|
|
Contributor
Author
There was a problem hiding this comment.
I should change it to be a setting. GNOME window decorations are too big for corner mode to look good, but they're ok on Sway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.