Convert all pending X events in _gdk_events_queue
If we only convert the first then motion hint emulation won't work since we don't see the next motion even until we've fully handled this one. However, this changes a behaviour that has been like this since the mists of time. I don't know if it could cause other issues. I haven't seen any yet though.
This commit is contained in:
		
				
					committed by
					
						
						Alexander Larsson
					
				
			
			
				
	
			
			
			
						parent
						
							cb05af0a61
						
					
				
				
					commit
					c0ad534d81
				
			@ -2326,7 +2326,7 @@ _gdk_events_queue (GdkDisplay *display)
 | 
			
		||||
  XEvent xevent;
 | 
			
		||||
  Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
 | 
			
		||||
 | 
			
		||||
  while (!_gdk_event_queue_find_first(display) && XPending (xdisplay))
 | 
			
		||||
  while (XPending (xdisplay))
 | 
			
		||||
    {
 | 
			
		||||
      XNextEvent (xdisplay, &xevent);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user