From 84d12f680ddecd6e60ab7d529c68caee1655b9e2 Mon Sep 17 00:00:00 2001 From: sakurawald Date: Wed, 20 Nov 2024 11:31:48 +0800 Subject: [PATCH 1/2] fix: sdl2 disables the kwin compositor, causing the window effects invalid, like the window opacity. --- frontends/sdl2/main.lisp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontends/sdl2/main.lisp b/frontends/sdl2/main.lisp index e3407c227..b63328ee2 100644 --- a/frontends/sdl2/main.lisp +++ b/frontends/sdl2/main.lisp @@ -209,6 +209,9 @@ (if (lem:config :darwin-use-native-fullscreen) 1 0)) ;; sdl2 should not install any signal handlers, since the lisp runtime already does so (sdl2:set-hint :no-signal-handlers 1) + ;; sdl2 should not disable the kwin compositor, since lem editor is not a game, and disable this will not bring noticeable performance improvement. + (sdl2:set-hint :video-x11-net-wm-bypass-compositor 0) + (tmt:with-body-in-main-thread () (sdl2:make-this-thread-main (lambda () (handler-bind From 407dd3c8a2436b6dd63343b49150a599efbf18c8 Mon Sep 17 00:00:00 2001 From: sakurawald Date: Wed, 20 Nov 2024 11:33:57 +0800 Subject: [PATCH 2/2] fix: sdl2 should not disable the kwin compositor, which will cause the window effects invalid, including the window opacity. --- frontends/sdl2/main.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/sdl2/main.lisp b/frontends/sdl2/main.lisp index b63328ee2..f6cbce630 100644 --- a/frontends/sdl2/main.lisp +++ b/frontends/sdl2/main.lisp @@ -209,7 +209,7 @@ (if (lem:config :darwin-use-native-fullscreen) 1 0)) ;; sdl2 should not install any signal handlers, since the lisp runtime already does so (sdl2:set-hint :no-signal-handlers 1) - ;; sdl2 should not disable the kwin compositor, since lem editor is not a game, and disable this will not bring noticeable performance improvement. + ;; sdl2 should not disable the kwin compositor, since lem editor is not a game, and disable it will not bring noticeale performance improvement. (sdl2:set-hint :video-x11-net-wm-bypass-compositor 0) (tmt:with-body-in-main-thread ()