Make drops on the root window work again. (#145243, Andrew S. Dixon)
2006-02-02 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display): Make drops on the root window work again. (#145243, Andrew S. Dixon)
This commit is contained in:
		 Matthias Clasen
					Matthias Clasen
				
			
				
					committed by
					
						 Matthias Clasen
						Matthias Clasen
					
				
			
			
				
	
			
			
			 Matthias Clasen
						Matthias Clasen
					
				
			
						parent
						
							32690cf693
						
					
				
				
					commit
					afab67f99a
				
			| @ -3035,7 +3035,13 @@ _gdk_drag_get_protocol_for_display (GdkDisplay      *display, | ||||
| 	  GDK_NOTE (DND, g_message ("Entering local Xdnd window %#x\n", xid)); | ||||
| 	  return xid; | ||||
| 	} | ||||
|       else | ||||
|       else if (_gdk_x11_display_is_root_window (display, (Window) xid)) | ||||
| 	{ | ||||
| 	  *protocol = GDK_DRAG_PROTO_ROOTWIN; | ||||
| 	  GDK_NOTE (DND, g_message ("Entering root window\n")); | ||||
| 	  return xid; | ||||
| 	} | ||||
| 	        | ||||
| 	return None; | ||||
|     } | ||||
|    | ||||
| @ -3103,6 +3109,7 @@ _gdk_drag_get_protocol_for_display (GdkDisplay      *display, | ||||
|  | ||||
|       if (rootwin) | ||||
| 	{ | ||||
| 	  GDK_NOTE (DND, g_message ("Entering root window\n")); | ||||
| 	  *protocol = GDK_DRAG_PROTO_ROOTWIN; | ||||
| 	  return xid; | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user