GNOME Bugzilla – Bug 750455
xvimagesink, ximagesink: set WM_CLASS for the window
Last modified: 2015-06-08 19:26:11 UTC
Created attachment 304655 [details] [review] fix for xvimagesink Most customizable window managers use the WM_CLASS property of the window to decide what rules to apply to it. xvimagesink and ximagesink don't set this property making them impossible to customize. Fix this by setting the XClassHint property. For example in i3, after setting the property, you can set the following rule to have a player's window float instead of tile. for_window [class="GStreamer"] floating enable res_name should match the window title, for this case it is 'gst-launch-1.0'. I'm not 100% sure if 'GStreamer' is the best class name, I'm open to proposals.
Created attachment 304656 [details] [review] fix for ximagesink
Review of attachment 304655 [details] [review]: Merged: commit c3a19f7851c9e0c5d28a87bbdfb1369e841d43a5 Author: Luis de Bethencourt <luis.bg@samsung.com> Date: Fri Jun 5 15:58:39 2015 +0100 xvimagesink: set WM_CLASS of window Set WM_CLASS of the xvimagesink window so window managers can apply rules based on xprop filtering.
Review of attachment 304656 [details] [review]: Merged: commit fc01b3f13f2c9308009b3843e9496c29ca9b64d3 Author: Luis de Bethencourt <luis.bg@samsung.com> Date: Fri Jun 5 16:01:05 2015 +0100 ximagesink: set WM_CLASS of window Set WM_CLASS of the ximagesink window so window managers can apply rules based on xprop filtering.
commit 6221c95d482e6111ffe8fffdde1b832192c00d8c Author: Tim-Philipp Müller <tim@centricular.com> Date: Mon Jun 8 20:17:07 2015 +0100 ximagesink, xvimagesink: fix string leaks when setting class hint https://bugzilla.gnome.org/show_bug.cgi?id=750455