<br><br><div class="gmail_quote">2009/10/23  <span dir="ltr"><<a href="mailto:xfce4-dev-request@xfce.org">xfce4-dev-request@xfce.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Xfce4-dev mailing list submissions to<br>
        <a href="mailto:xfce4-dev@xfce.org">xfce4-dev@xfce.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://foo-projects.org/mailman/listinfo/xfce4-dev" target="_blank">http://foo-projects.org/mailman/listinfo/xfce4-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:xfce4-dev-request@xfce.org">xfce4-dev-request@xfce.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:xfce4-dev-owner@xfce.org">xfce4-dev-owner@xfce.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Xfce4-dev digest..."<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 22 Oct 2009 19:32:43 +0200<br>
From: Olivier Fourdan <<a href="mailto:fourdan@gmail.com">fourdan@gmail.com</a>><br>
Subject: Re: [Help]: Question about compositing with xfwm4<br>
To: XFCE4 development list <<a href="mailto:xfce4-dev@xfce.org">xfce4-dev@xfce.org</a>><br>
Message-ID:<br>
        <<a href="mailto:60f2b0dc0910221032r5268c48fh6e8d6df3a5ff7d6c@mail.gmail.com">60f2b0dc0910221032r5268c48fh6e8d6df3a5ff7d6c@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Thu, Oct 22, 2009 at 5:22 PM, andy wang <<a href="mailto:wandy817@gmail.com">wandy817@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I have one question about 'compositing' with xfwm4.<br>
> In one shell, I start a new x server with Xephyr on 1.0 display:<br>
> Xephyr -ac :1.0<br>
> In another shell,<br>
> export DISPLAY=:1.0<br>
> I start xfwm4 and enable 'Enable display compositing' with<br>
> xfwm4-tweaks-settings.<br>
> then set background image with xli:<br>
> xli -onroot /usr/share/pixmaps/xx.png<br>
> Then drag any window , however, the background is coverd, looks like the<br>
> background was not re-painted yet(grey).<br>
> But if I use xfdesktop or disable compositing option, there is no problem.<br>
> I don't know why? and how to solve this problem with xli.<br>
> Thanks!<br>
<br>
Simply because a compositor draws on the root win, so if another<br>
application draws on the root win you end up with problems.<br>
<br>
If "xli" sets the root pixmap property XROOTPMAP, xfwm4 can be built<br>
to "listen" to the XROOTPMAP property and repaint the background<br>
accordingly, you just need to built xfwm4 from sources with<br>
MONITOR_ROOT_PIXMAP defined.<br>
<br>
But as this is not needed in the default configuration (ie you have<br>
xfdesktop or another desktop that uses a separate window on top of the<br>
root win), that define is not set in the default build (read, you're<br>
on your own).<br>
<br>
Cheers,<br>
Olivier.<br>
<br></blockquote><div>Hi Olivier,<br>So if I want to make xli works properly with compositor extension, I need to <br>1 .change XROOTPMAP property with the root pixmap in xli,  <br>2. build xfwm4 with XROOTPMAP<br>3. need a gtk event loop to receive expose event, and repaint the background in expose callback function<br>
<br>If there no loop to repaint background,  it will fail, am i right? so i should to add a event loop to xli source code if i want to <br>make xli works properly with compositor feature.<br><br>Thanks<br>Black.<br></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
------------------------------<br>
<br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a><br>
<a href="http://foo-projects.org/mailman/listinfo/xfce4-dev" target="_blank">http://foo-projects.org/mailman/listinfo/xfce4-dev</a><br>
<br>
End of Xfce4-dev Digest, Vol 71, Issue 16<br>
*****************************************<br>
</blockquote></div><br>