aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/window.c b/window.c
index 1be14c1..d585c55 100644
--- a/window.c
+++ b/window.c
@@ -219,6 +219,13 @@ Pixmap win_create_pixmap(win_t *win) {
win->env.depth);
}
+void win_draw_pixmap(win_t *win, Pixmap pm, int x, int y, int w, int h) {
+ if (!win)
+ return;
+
+ XCopyArea(win->env.dpy, pm, win->pm, bgc, 0, 0, w, h, x, y);
+}
+
void win_clear(win_t *win) {
win_env_t *e;
XGCValues gcval;