XQuartz: Short-circuit activateX:
This also avoids a deadlock when calling activateX: before the server thread has initialized Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
		
							parent
							
								
									1562c4a1ca
								
							
						
					
					
						commit
						cb6a32da27
					
				| 
						 | 
					@ -191,6 +191,9 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- (void) activateX:(OSX_BOOL)state {
 | 
					- (void) activateX:(OSX_BOOL)state {
 | 
				
			||||||
 | 
					    if (_x_active == state)
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active);
 | 
					    DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active);
 | 
				
			||||||
    if (state) {
 | 
					    if (state) {
 | 
				
			||||||
        if(bgMouseLocationUpdated) {
 | 
					        if(bgMouseLocationUpdated) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue