GNOME Bugzilla – Bug 672735
Last modified: 2014-09-17 20:00:43 UTC
Quoting http://wayland.freedesktop.org/gtk.html on porting to wayland:
* Ensure that your application uses gtk+-3.0 for its pkg-config request.
* Your application must not use any API in the gdk_x11_ namespace or any raw Xlib calls.
I just tried running totem under wayland, and got:
totem: symbol lookup error: /usr/lib/libtotem.so.0: undefined symbol: gdk_x11_set_sm_client_id
So it's using gdk_x11 stuff, so it won't work with wayland.
$:andre\> grep -r gdk_x11_ .
./lib/totem-scrsaver.c: xid = gdk_x11_window_get_xid (window);
./src/totem-interface.c: toplevel = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), xid);
./src/plugins/brasero-disc-recorder/totem-disc-recorder.c: xid = gdk_x11_window_get_xid (gtk_widget_get_window (GTK_WIDGET (main_window)));
./src/eggsmclient-xsmp.c: gdk_x11_set_sm_client_id (xsmp->client_id);
./src/eggdesktopfile.c: launch_time = gdk_x11_display_get_user_time (display);
./src/eggdesktopfile.c: gdk_x11_display_broadcast_startup_message (display, "new",
./src/eggdesktopfile.c: gdk_x11_display_broadcast_startup_message (display, "remove",
The latter are code copied from libegg, hence added dependency bug.
Using X11-specific calls is fine actually, as long as it is ifdefed and under a runtime check
We don't need the libegg ported, as we want to remove the session handling as it is done. See bug 672999.
It should now work with "--with-smclient=no" passed.
This is a "Movie Player" only problem now, as the browser plugin doesn't work on non-X11.
Author: Bastien Nocera <email@example.com>
Date: Sat Mar 9 00:29:18 2013 +0100
main: Remove eggsmclient code
We now save our own session.
Is there anything left to do here?
(In reply to comment #7)
> Is there anything left to do here?
Haven't had the chance to test it. If it works, feel free to close this. Might want to test cheese as well.
*** Bug 735679 has been marked as a duplicate of this bug. ***
Reopening, it's not working.
I don't think the bug is relevant anymore. Player starts and works just fine, I am able to play videos (although not when gstreamer-vaapi is installed, but that's some other issue) but the video widget is not embedded properly in the main GTK+ window. That may be because of problem in clutter-gtk itself, not totem.
I've asked Jasper to try to investigate.
Created attachment 286041 [details] [review]
HACK: main: Fix placement of video player under Wayland
(In reply to comment #11)
> I don't think the bug is relevant anymore.
It is, because, ultimately, it's dependent on the widgets we use.