<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>xfwm4's window previews seem to be scaled fast enough, and at a quality intermediate to that of CAIRO_FILTER_FAST and CAIRO_FILTER_GOOD. I suppose it uses XRender, but what could it be doing?</div><div><br></div><div>Also, if I choose CAIRO_FILTER_GOOD, my previews do not update in response to X11 Damage events. If I use CAIRO_FILTER_FAST, it works properly. Why is this, and how could I resolve this?</div><div><br></div><div>Regards</div><div><br></div><div>adlo<br><br><br></div><div><br>On 19 Aug 2015, at 01:52, Bill Spitzak <<a href="mailto:spitzak@gmail.com">spitzak@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 18, 2015 at 2:24 PM, adlo <span dir="ltr"><<a href="mailto:adloconwy@gmail.com" target="_blank">adloconwy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> On 18 Aug 2015, at 19:13, Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br>
><br>
> Why do you want to use a picture instead of directly using the drawable?<br>
<br>
</span>I am writing a GTK2 program that gets previews/screenshots of all open windows. My program scales the previews and puts them in GtkImages.<br>
<br>
CAIRO_FILTER_FAST gives rather low-quality results, but CAIRO_FILTER_GOOD is rather slow.<br>
<br>
I wanted to try scaling the previews using XRender in order to find out if it is any better or faster compared to Cairo scaling.<br></blockquote><div><br></div><div>Unfortunatly XRender is going to give the the exact same results as CAIRO_FILTER_FAST.<br><br> <br></div></div></div></div>
</div></blockquote></body></html>