From 3fc7ae165d9f2f9ab2582ac779d5ac8c55afd3c2 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 27 Oct 2017 11:57:13 -0400 Subject: [PATCH] timer --- simpledisplay.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simpledisplay.d b/simpledisplay.d index 9330fba..5b1dd5f 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -2770,6 +2770,7 @@ class NotificationAreaIcon : CapableOfHandlingNativeEvent { private SimpleWindow balloon; + version(with_timer) private Timer timer; private Window nativeHandle; @@ -3076,7 +3077,9 @@ class NotificationAreaIcon : CapableOfHandlingNativeEvent { ); balloon.show(); + version(with_timer) timer = new Timer(timeout, &hideBalloon); + else {} // FIXME } else version(Windows) { enum NIF_INFO = 0x00000010;