aboutsummaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-18 20:11:28 +0100
committerBert <ber.t@gmx.com>2011-01-18 20:11:28 +0100
commit79c7e6178e9b577158408157ec23a477556ecf16 (patch)
treeabbefa4cd1b884ca19d396359b4e40dad0057589 /window.c
parentbb4edc756c7ceddb0f13194929cd1d363c85d653 (diff)
downloadnsxiv-79c7e6178e9b577158408157ec23a477556ecf16.tar.zst
Render image on window
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 f8afad6..223e4c6 100644
--- a/window.c
+++ b/window.c
@@ -106,3 +106,10 @@ int win_configure(win_t *win, XConfigureEvent *cev) {
win->bw = cev->border_width;
return changed;
}
+
+void win_clear(win_t *win) {
+ if (!win)
+ return;
+
+ XClearWindow(win->env.dpy, win->xwin);
+}