goto ignore_end;
}
- tree_close(con, DONT_KILL_WINDOW, false, false);
+ tree_close_internal(con, DONT_KILL_WINDOW, false, false);
tree_render();
ignore_end:
return;
}
- /* Since we render to our pixmap on every change anyways, expose events
+ /* Since we render to our surface on every change anyways, expose events
* only tell us that the X server lost (parts of) the window contents. We
- * can handle that by copying the appropriate part from our pixmap to the
+ * can handle that by copying the appropriate part from our surface to the
* window. */
- xcb_copy_area(conn, parent->pixmap, parent->frame, parent->pm_gc,
- event->x, event->y, event->x, event->y,
- event->width, event->height);
+ draw_util_copy_surface(conn, &(parent->frame_buffer), &(parent->frame),
+ event->x, event->y, event->x, event->y,
+ event->width, event->height);
xcb_flush(conn);
-
return;
}
if (event->data.data32[0])
last_timestamp = event->data.data32[0];
- tree_close(con, KILL_WINDOW, false, false);
+ tree_close_internal(con, KILL_WINDOW, false, false);
tree_render();
} else {
DLOG("Couldn't find con for _NET_CLOSE_WINDOW request. (window = %d)\n", event->window);