From 7b497406136dabcce280bae3886a88ee77ebc1e7 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 16 Feb 2011 16:47:12 +0100 Subject: First things for thumbnail mode --- window.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'window.c') diff --git a/window.c b/window.c index 76a8e87..1be14c1 100644 --- a/window.c +++ b/window.c @@ -211,6 +211,14 @@ void win_toggle_fullscreen(win_t *win) { SubstructureNotifyMask, &ev); } +Pixmap win_create_pixmap(win_t *win) { + if (!win) + return 0; + + return XCreatePixmap(win->env.dpy, win->xwin, THUMB_SIZE, THUMB_SIZE, + win->env.depth); +} + void win_clear(win_t *win) { win_env_t *e; XGCValues gcval; -- cgit v1.2.3