Commit 22af5b28 authored by Carl-Anton Ingmarsson's avatar Carl-Anton Ingmarsson Committed by Sebastien Granjoux

Fix gdk_window_get_origin() assertion in GdlDockMaster.

Fixes the following assertion in Anjuta
(lt-anjuta:2876): Gdk-CRITICAL **: gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
parent f63367b8
......@@ -587,6 +587,9 @@ gdl_dock_master_drag_motion (GdlDockItem *item,
GdkWindow *dock_window;
dock = GDL_DOCK (l->data);
dock_window = gtk_widget_get_window (GTK_WIDGET (dock));
if (!dock_window)
/* translate root coordinates into dock object coordinates
(i.e. widget coordinates) */
gdk_window_get_origin (dock_window, &win_x, &win_y);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment