+ /* if the plugin does adds itself to the parent,
+ * but ardour re-parents it, we have a pointer to
+ * the socket's child and need to resize the
+ * child window (e.g. JUCE, u-he)
+ */
+ if (xw) {
+ XMoveResizeWindow (GDK_WINDOW_XDISPLAY (w), xw,
+ 0, 0, _vst->state()->width, _vst->state()->height);
+ XMapRaised (GDK_WINDOW_XDISPLAY (w), xw);
+ XFlush (GDK_WINDOW_XDISPLAY (w));
+ }