From 58ba664255cb0303c5158bf500be4dda00bb6d2c Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 14 Nov 2018 09:49:16 -0500 Subject: [PATCH] the window registration is global, so make the local cache global too. but this still is not really thread safe so use caution --- simpledisplay.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index b445b29..d7249cf 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -7504,7 +7504,7 @@ version(Windows) { // Mix this into the SimpleWindow class mixin template NativeSimpleWindowImplementation() { int curHidden = 0; // counter - static bool[string] knownWinClasses; + __gshared static bool[string] knownWinClasses; static bool altPressed = false; HANDLE oldCursor;