force X11 backend for frameless window on KDE Wayland

GTK3 doesn't implement the xdg-decoration Wayland protocol, so
KWin always adds server-side decorations regardless of
gtk_window_set_decorated(FALSE). GDK_BACKEND=x11 forces XWayland
where MOTIF_WM_HINTS reliably removes decorations. Revisit when
Flutter moves to GTK4 or implements xdg-decoration natively.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 09:04:51 +02:00
co-authored by Claude Opus 4.6
parent 065cef24c2
commit 2a3ec8f45c
+1 -1
View File
@@ -19,7 +19,7 @@ help: ## Show this help.
.PHONY: run
run: ## Launch the Flutter desktop app.
GTK_CSD=1 LD_LIBRARY_PATH=$(CURDIR)/native/linux-x64$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} flutter run -d linux
GDK_BACKEND=x11 LD_LIBRARY_PATH=$(CURDIR)/native/linux-x64$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} flutter run -d linux
.PHONY: pubget
pubget: ## flutter pub get.