the window registration is global, so make the local cache global too. but this still is not really thread safe so use caution

This commit is contained in:
Adam D. Ruppe 2018-11-14 09:49:16 -05:00
parent 8ae959b7ce
commit 58ba664255
1 changed files with 1 additions and 1 deletions

View File

@ -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;