<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=ZH-CN link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>When I run your sample<o:p></o:p></span></font></p>

<pre><font size=1 color=navy face=Arial><span lang=EN-US style='font-size:9.0pt;
font-family:Arial;color:navy'>I saw one window, which could adjust its size in </span></font><span
lang=EN-US>XCreateSimpleWindow ().<o:p></o:p></span></pre><pre><font size=1
color=navy face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial;
color:navy'>Isn’t it same on you side?<o:p></o:p></span></font></pre><pre><font
size=1 color=navy face=Arial><span lang=EN-US style='font-size:9.0pt;
font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=1 color=navy face=Arial><span lang=EN-US style='font-size:9.0pt;
font-family:Arial;color:navy'>I compile it use –lXt, instead of -lXtst<o:p></o:p></span></font></pre><pre><font
size=1 color=navy face=Arial><span lang=EN-US style='font-size:9.0pt;
font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></pre>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>And gdkwindow could do
full-screen to hide window title to reach an un</span></font><span lang=EN-US>decorated
window, is this what you need?<o:p></o:p></span></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=3 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
E. Westbrook [mailto:gstreamer@westbrook.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 2009</span></font><font
size=2 face=宋体><span style='font-size:10.0pt;font-family:宋体'>年</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>6</span></font><font
size=2 face=宋体><span style='font-size:10.0pt;font-family:宋体'>月</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>23</span></font><font
size=2 face=宋体><span style='font-size:10.0pt;font-family:宋体'>日</span></font><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
11:29<br>
<b><span style='font-weight:bold'>To:</span></b> Discussion of the development
of GStreamer<br>
<b><span style='font-weight:bold'>Subject:</span></b> [gst-devel] Simple? Using
prepare-xwindow-id with xvimagesink</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>I hope this is an easy one for someone here, and I
apologize if I'm asking in the wrong place.&nbsp; And please forgive what I'm
sure must be a dumb question, but I'm stumped.&nbsp; Even just tips of where
else to look for the answer would be gratefully welcomed.<br>
<br>
I'm using a simple C program to launch a trivial pipeline with a videotestsrc
sourcing to an xvimagesink.&nbsp; My demonstration source is at:<br>
<br>
<a href="http://vps01.westbrook.com/movewin.c">http://vps01.westbrook.com/movewin.c</a><br>
<br>
Creating and launching the pipeline from C is easy enough and works fine.&nbsp;
The trick (to me) is that I want it to be placed in an undecorated X11 window
at specific screen coordinates, and I'm unable to so far.<br>
<br>
>From what I gather from reading everything I can find, for best results this
should be done using the &quot;prepare-xwindow-id&quot; message sent by the
xvimagesink element, and responding with the created window ID using the
&quot;gst_x_overlay_set_xwindow_id()&quot; method of the xoverlay
interface.&nbsp; I'm doing this, and I do indeed get a request message, and
respond to it.<br>
<br>
It doesn't seem like a terribly complicated transaction, but it's not working
for me and I'm at a loss as to why.&nbsp; Try as I might, video appears in
xvimagesink's self-created window rather than mine, with decorations, anywhere
on the screen that the WM feels like putting it.<br>
<br>
Would anyone mind taking a quick glance to see what I'm doing wrong?&nbsp; I
hope it's obvious to someone with more gstreamer under their belt than
me.&nbsp; Also, when it's working, would a well-documented example of this
technique be good to share on an examples page of some kind?&nbsp; (Or if one
exists already, pointers appreciated; I couldn't find one.)<br>
<br>
Thanks for any help!<br>
E. Westbrook<o:p></o:p></span></font></p>

</div>

</body>

</html>