From 83adc9c35c74e0badc710d981405858b1179a327 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 24 Sep 2016 00:13:45 +0300 Subject: tdf#102382: nextEventMatchingMask should only be called from the Main Thread So don't then unless we are on the main thread. Change-Id: I6ba52ed7db5d73a4c1c6acf10bdf254a6f959da8 --- vcl/osx/salinst.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 3bbff247736d..9bb657040cd2 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -736,6 +736,9 @@ bool AquaSalInstance::AnyInput( VclInputFlags nType ) } } + if (![NSThread isMainThread]) + return false; + unsigned/*NSUInteger*/ nEventMask = 0; if( nType & VclInputFlags::MOUSE) nEventMask |= -- cgit v1.2.3