Kaydet (Commit) e44b0345 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst 41602324
...@@ -736,6 +736,9 @@ bool AquaSalInstance::AnyInput( VclInputFlags nType ) ...@@ -736,6 +736,9 @@ bool AquaSalInstance::AnyInput( VclInputFlags nType )
} }
} }
if (![NSThread isMainThread])
return false;
unsigned/*NSUInteger*/ nEventMask = 0; unsigned/*NSUInteger*/ nEventMask = 0;
if( nType & VclInputFlags::MOUSE) if( nType & VclInputFlags::MOUSE)
nEventMask |= nEventMask |=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment