From 2a3ec8f45ccbce17da479f0e650d29d14a97901a Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Thu, 23 Apr 2026 09:04:51 +0200 Subject: [PATCH] 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) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0008b857..fee11a7b 100644 --- a/Makefile +++ b/Makefile @@ -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.