From da2a969ed4af2e26216482dac7a542936ee14442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Thu, 2 Jul 2026 11:04:07 +0200 Subject: [PATCH] Use GDK_BACKEND environment variable to select x11 backend This is more reliable than unsetting WAYLAND_DISPLAY. --- usr/lib/hypnotix/hypnotix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/lib/hypnotix/hypnotix.py b/usr/lib/hypnotix/hypnotix.py index a6be99f..1633cb5 100755 --- a/usr/lib/hypnotix/hypnotix.py +++ b/usr/lib/hypnotix/hypnotix.py @@ -12,8 +12,7 @@ from pathlib import Path # Force X11 on a Wayland session -if "WAYLAND_DISPLAY" in os.environ: - os.environ["WAYLAND_DISPLAY"] = "" +os.environ["GDK_BACKEND"] = "x11" # Suppress GTK deprecation warnings warnings.filterwarnings("ignore")