diff --git a/uppsrc/CtrlCore/GtkWnd.cpp b/uppsrc/CtrlCore/GtkWnd.cpp index a45008e5b..8aadf384e 100644 --- a/uppsrc/CtrlCore/GtkWnd.cpp +++ b/uppsrc/CtrlCore/GtkWnd.cpp @@ -430,9 +430,9 @@ void Ctrl::WndSetPos(const Rect& rect) SweepConfigure(false); // Remove any previous GDK_CONFIGURE for this window if(!this_ || !IsOpen()) return; -// gtk_window_move(gtk(), rect.left, rect.top); -// gtk_window_resize(gtk(), rect.GetWidth(), rect.GetHeight()); - Rect m = GetFrameMargins(); + Rect m(0, 0, 0, 0); + if(dynamic_cast(this)) + m = GetFrameMargins(); gdk_window_move_resize(gdk(), rect.left - m.left, rect.top - m.top, rect.GetWidth(), rect.GetHeight()); int t0 = msecs(); do { // Wait up to 500ms for corresponding GDK_CONFIGURE to arrive