applied w3m image patch
authorDaniel Liu <mr.picklepinosaur@gmail.com>
Mon, 7 Sep 2020 14:45:43 +0000 (10:45 -0400)
committerDaniel Liu <mr.picklepinosaur@gmail.com>
Mon, 7 Sep 2020 14:45:43 +0000 (10:45 -0400)
x.c

diff --git a/x.c b/x.c
index 09ee612..b278a34 100644 (file)
--- a/x.c
+++ b/x.c
@@ -1628,6 +1628,8 @@ xsettitle(char *p)
 int
 xstartdraw(void)
 {
+       if (IS_SET(MODE_VISIBLE))
+               XCopyArea(xw.dpy, xw.win, xw.buf, dc.gc, 0, 0, win.w, win.h, 0, 0);
        return IS_SET(MODE_VISIBLE);
 }