From e44b034512551c09689edcecfa7401ecbb4af80e 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(+) (limited to 'vcl/osx') diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index 5cf383272536..6fb7ca28bafe 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