28void SocketWindow::OnMap(GtkWidget* widget, gpointer data)
34 static auto runLoop = [&]() {
35 auto display = GDK_WINDOW_XDISPLAY(gtk_widget_get_window(widget));
40 if(self->mPlugView->setFrame(frame) == Steinberg::kResultOk)
42 self->mPlugView->attached(
43 (
void*)gtk_socket_get_id(GTK_SOCKET(widget)),
44 Steinberg::kPlatformTypeX11EmbedWindowID
47 if(self->mPlugView->getSize(&initialSize) == kResultOk)
48 frame->init(self->mPlugView.get(), &initialSize);
53 : wxNativeWindow(parent, winid, gtk_socket_new()), mPlugView(plugView)
Wrapper for GtkSocket object, which provides X window mapping via XEmbed protocol.
static void OnMap(GtkWidget *widget, gpointer data)
SocketWindow(wxWindow *parent, wxWindowID winid, Steinberg::IPlugView *plugView)