From: Roland Mas <roland.mas@entierement.net>
Date: Sat, 5 Oct 2024 09:35:22 +0200
Subject: Fallback to X11 in testsuite

---
 tests/test_pyscreeze.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test_pyscreeze.py b/tests/test_pyscreeze.py
index 016cf8f..9260a7c 100644
--- a/tests/test_pyscreeze.py
+++ b/tests/test_pyscreeze.py
@@ -32,6 +32,9 @@ if sys.platform.startswith('linux'):
     elif 'WAYLAND_DISPLAY' in os.environ:
         RUNNING_WAYLAND = True
         RUNNING_X11 = False
+    elif 'DISPLAY' in os.environ:
+        RUNNING_WAYLAND = False
+        RUNNING_X11 = True
 
 # Helper functions to get current screen resolution on Windows, Mac OS X, or Linux.
 # Non-Windows platforms require additional modules:
