npapi-vlc | branch: master | Cheng Sun <[email protected]> | Sat Dec 24 16:41:51 2011 +0000| [4dbb3dcd579a859a1b2ba5abbf1fce696fb85785] | committer: Jean-Baptiste Kempf
Make video output and fullscreen work on Opera 12.00 Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=4dbb3dcd579a859a1b2ba5abbf1fce696fb85785 --- npapi/vlcplugin_gtk.cpp | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/npapi/vlcplugin_gtk.cpp b/npapi/vlcplugin_gtk.cpp index d6263cf..78d0354 100644 --- a/npapi/vlcplugin_gtk.cpp +++ b/npapi/vlcplugin_gtk.cpp @@ -91,6 +91,7 @@ void VlcPluginGtk::do_set_fullscreen(bool yes) g_object_unref(G_OBJECT(parent_vbox)); gtk_widget_show_all(GTK_WIDGET(parent)); } + XSync(get_display(), false); XReparentWindow(display, video_xwindow, get_xid(video_container), 0,0); XMapWindow(display, video_xwindow); @@ -125,9 +126,6 @@ void VlcPluginGtk::set_toolbar_visible(bool yes) gtk_widget_show_all(toolbar); update_controls(); g_object_unref(G_OBJECT(toolbar)); - - gtk_container_resize_children(GTK_CONTAINER(parent)); - gtk_container_resize_children(GTK_CONTAINER(parent_vbox)); } else { g_object_ref(G_OBJECT(toolbar)); gtk_widget_hide(toolbar); @@ -146,6 +144,7 @@ void VlcPluginGtk::resize_video_xwindow(GdkRectangle *rect) Display *display = get_display(); XResizeWindow(display, video_xwindow, rect->width, rect->height); + XSync(display, false); } struct tool_actions_t _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
