From 39e87df60249b8472bb6ec97e736a10c6ad146c4 Mon Sep 17 00:00:00 2001
From: Elias Batek <desisma@heidel.beer>
Date: Wed, 11 Sep 2024 03:08:13 +0200
Subject: [PATCH] Fix "Timer" symbol clash

---
 pixmappresenter.d | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pixmappresenter.d b/pixmappresenter.d
index 60b4b9b..84ecb8a 100644
--- a/pixmappresenter.d
+++ b/pixmappresenter.d
@@ -192,7 +192,12 @@ alias Pixmap = arsd.pixmappaint.Pixmap;
 alias WindowResizedCallback = void delegate(Size);
 
 // is the Timer class available on this platform?
-private enum hasTimer = is(Timer == class);
+private enum hasTimer = is(arsd.simpledisplay.Timer == class);
+
+// resolve symbol clash on “Timer” (arsd.core vs arsd.simpledisplay)
+static if (hasTimer) {
+	private alias Timer = arsd.simpledisplay.Timer;
+}
 
 // viewport math
 private @safe pure nothrow @nogc {