XQuartz: Comment out the background pointer interaction that seems to be causing CPU spinning on some configurations
(cherry picked from commit 1d479fa4f3bca9cbd81808a6c87582422fd2a257)
This commit is contained in:
		
							parent
							
								
									5672e2d664
								
							
						
					
					
						commit
						4b63f88b0a
					
				| 
						 | 
				
			
			@ -1059,6 +1059,11 @@ static inline int ensure_flag(int flags, int device_independent, int device_depe
 | 
			
		|||
                pDev = darwinTabletCurrent;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
/* Seems this has somehow triggered 100% CPU usage while X11.app is in the
 | 
			
		||||
 * background on some obscure HW configurations.
 | 
			
		||||
 * http://xquartz.macosforge.org/trac/ticket/241
 | 
			
		||||
 */
 | 
			
		||||
#if 0
 | 
			
		||||
/* Older libXplugin (Tiger/"Stock" Leopard) aren't thread safe, so we can't call xp_find_window from the Appkit thread */
 | 
			
		||||
#ifdef XPLUGIN_VERSION
 | 
			
		||||
#if XPLUGIN_VERSION > 0
 | 
			
		||||
| 
						 | 
				
			
			@ -1078,6 +1083,7 @@ static inline int ensure_flag(int flags, int device_independent, int device_depe
 | 
			
		|||
                    return;        
 | 
			
		||||
            }
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
            
 | 
			
		||||
            DarwinSendPointerEvents(pDev, ev_type, ev_button, pointer_x, pointer_y,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue