cast the return value of XGetWindowProperty() correctly so we don't return
2006-07-27 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): cast the return value of XGetWindowProperty() correctly so we don't return garbage type hints. Pointed out by Tommi Komulainen, patch taken from https://maemo.org/bugzilla/show_bug.cgi?id=724
This commit is contained in:
		 Michael Natterer
					Michael Natterer
				
			
				
					committed by
					
						 Michael Natterer
						Michael Natterer
					
				
			
			
				
	
			
			
			 Michael Natterer
						Michael Natterer
					
				
			
						parent
						
							d9c4801d94
						
					
				
				
					commit
					8022523767
				
			| @ -2322,7 +2322,7 @@ gdk_window_get_type_hint (GdkWindow *window) | ||||
|       if ((type_return == XA_ATOM) && (format_return == 32) && | ||||
|           (data) && (nitems_return == 1)) | ||||
|         { | ||||
|           Atom atom = (Atom) *data; | ||||
|           Atom atom = *(Atom*)data; | ||||
|  | ||||
|           if (atom == gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_WINDOW_TYPE_DIALOG")) | ||||
|             type = GDK_WINDOW_TYPE_HINT_DIALOG; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user