Commit 8f8e9c53 authored by Jeremy Huddleston Sequoia's avatar Jeremy Huddleston Sequoia
Browse files

xquartz: Don't process AppKit events if we haven't finished initializing


Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 25035229)
parent aa6f8402
......@@ -200,6 +200,14 @@ QuartzModeBundleInit(void);
- (void) sendEvent:(NSEvent *)e
{
/* Don't try sending to X if we haven't initialized. This can happen if AppKit takes over
* (eg: uncaught exception) early in launch.
*/
if (!eventTranslationQueue) {
[super sendEvent:e];
return;
}
OSX_BOOL for_appkit, for_x;
OSX_BOOL const x_active = self.x_active;
......
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