static void
window_update_pixmap(d_window_priv_t *w)
{
- xcb_pixmap_t p;
-
if (window_is_zombie((d_window_t*)w)) return;
- /* XXX can we save it for until we get the new pixmap? */
- if ((p = window_get_pixmap((d_window_t*)w))) {
- xcb_free_pixmap(w->sc->dpy->conn, p);
+ /* the pixmap may not be valid even though it is non-zero, but
+ we can free it anyways and let it fail. we don't need to wait
+ for a response from the server */
+ if (w->pixmap) {
+ xcb_free_pixmap(w->sc->dpy->conn, w->pixmap);
w->pixmap = XCB_NONE;
}