xquartz: Don't process AppKit events if we haven't finished initializing
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
		
							parent
							
								
									487286d472
								
							
						
					
					
						commit
						25035229b7
					
				|  | @ -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; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue