Fix gdk_window_get_root_origin and gdk_window_get_frame_extents when called on non-toplevels
This commit is contained in:
		 Alexander Larsson
					Alexander Larsson
				
			
				
					committed by
					
						 Alexander Larsson
						Alexander Larsson
					
				
			
			
				
	
			
			
			 Alexander Larsson
						Alexander Larsson
					
				
			
						parent
						
							ed5564ee3a
						
					
				
				
					commit
					4202cc0c60
				
			| @ -2809,9 +2809,6 @@ gdk_window_get_root_origin (GdkWindow *window, | ||||
| { | ||||
|   GdkRectangle rect; | ||||
|  | ||||
|   if (!WINDOW_IS_TOPLEVEL (window)) | ||||
|     return; | ||||
|    | ||||
|   gdk_window_get_frame_extents (window, &rect); | ||||
|  | ||||
|   if (x) | ||||
| @ -2865,10 +2862,6 @@ gdk_window_get_frame_extents (GdkWindow    *window, | ||||
|   rect->width = 1; | ||||
|   rect->height = 1; | ||||
|    | ||||
|   if (GDK_WINDOW_DESTROYED (window) || | ||||
|       !WINDOW_IS_TOPLEVEL (window)) | ||||
|     return; | ||||
|    | ||||
|   while (private->parent && ((GdkWindowObject*) private->parent)->parent) | ||||
|     private = (GdkWindowObject*) private->parent; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user