💩 Allow x11 mode to get window decorations

This commit is contained in:
2026-09-25 22:59:58 +02:00
parent fe89f803d7
commit 7f0c48100e
3 changed files with 53 additions and 3 deletions
+3 -3
View File
@@ -26,6 +26,7 @@ var iconPNG []byte
var preferredTheme = flag.String("theme", "", "Specify the theme to be used. dark/light")
var linger = flag.String("linger", "", "If specified, linger for the given duration (e.g. 10s) before actually closing.")
var x11 = flag.Bool("x11", false, "Force the X11 backend (Linux, XWayland): uses the window manager's decorations instead of shirei's client-side titlebar")
type Gitmoji struct {
Emoji string
@@ -86,9 +87,8 @@ func main() {
}
}
app.SetupWindow("Gitmoji Picker", 300, 300)
app.SetupIconBytes(iconPNG)
app.Run(RootView)
setupWindow("Gitmoji Picker", 300, 300)
runWindow(RootView)
}
func loadEntries(gitmojiData *GitmojiData) {