<div dir="ltr"><div><div>Hello,<br><br></div>I have been exploring how to add support for Window previews in xfwm4. I am assuming that this can be built with the help of XRender support in xfwm4. My aim is to enhance the tabwin implementation to show window previews if compositor is enabled in xfwm4 or fall back to the current scheme of showing application icons. The compositor has window_pixmap for every application window that IMHO can be used for generating previews but it wouldn't work for minimized windows. <br><br>Here is how I am thinking of  enhancing xfwm4 to add support for this often requested feature:<br><br></div><div>[1] Add an XImage or GTKImage to represent Window Preview for every _CWindow<br></div><div>[2] Lazy update the Image: Cache the image for windows which are being minimized; For unminimized windows update the Image on Window Preview Request<br></div><div>[3] Enhance tabwin to request the compositor for the Window Preview if compositor is enabled<br></div><div>[4] Use the obtained Image for drawing the GtkButton<br><br></div><div>Does this sound inline with xfwm4 broader design philosophies? Given I am not an expert in XWindow programming, does this look technically doable?<br></div><div><br></div>-Sonal<br></div>