Switch motion hint emulation to be serial based.
For backends not supporting serials, just have _gdk_windowing_window_get_next_serial return zero.
This commit is contained in:
		 Alexander Larsson
					Alexander Larsson
				
			
				
					committed by
					
						 Alexander Larsson
						Alexander Larsson
					
				
			
			
				
	
			
			
			 Alexander Larsson
						Alexander Larsson
					
				
			
						parent
						
							19cd4d6af8
						
					
				
				
					commit
					e24c9e291d
				
			| @ -444,6 +444,13 @@ process_internal_connection (GIOChannel  *gioc, | ||||
|   return TRUE; | ||||
| } | ||||
|  | ||||
| gulong | ||||
| _gdk_windowing_window_get_next_serial (GdkDisplay *display) | ||||
| { | ||||
|   return NextRequest (GDK_DISPLAY_XDISPLAY (display)); | ||||
| } | ||||
|  | ||||
|  | ||||
| static GdkInternalConnection * | ||||
| gdk_add_connection_handler (Display *display, | ||||
| 			    guint    fd) | ||||
|  | ||||
| @ -2352,7 +2352,7 @@ _gdk_events_queue (GdkDisplay *display) | ||||
|       if (gdk_event_translate (display, event, &xevent, FALSE)) | ||||
| 	{ | ||||
| 	  ((GdkEventPrivate *)event)->flags &= ~GDK_EVENT_PENDING; | ||||
|           _gdk_windowing_got_event (display, node, event); | ||||
|           _gdk_windowing_got_event (display, node, event, xevent.xany.serial); | ||||
| 	} | ||||
|       else | ||||
| 	{ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user