diff --git a/plugins/scintilla/scintilla/PlatGTK.cxx b/plugins/scintilla/scintilla/PlatGTK.cxx
index b442310..30fcf52 100644
--- a/plugins/scintilla/scintilla/PlatGTK.cxx
+++ b/plugins/scintilla/scintilla/PlatGTK.cxx
@@ -1787,7 +1787,7 @@ void Window::SetPositionRelative(PRectangle rc, Window relativeTo) {
 	if (oy + sizey > screenHeight)
 		oy = screenHeight - sizey;
 
-	gdk_window_move(PWidget(id)->window, ox, oy);
+	gtk_window_move(GTK_WINDOW(id), ox, oy);
 #if 0
 
 	GtkAllocation alloc;
