summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2021-08-19 23:56:13 -0500
committerGitHub <noreply@github.com>2021-08-19 23:56:13 -0500
commit1b4300db4e0dabe0c22313062a7886abdb59e764 (patch)
tree03230e4750d3a3d216414b966b52e386d9f474f7 /x.c
parentffbe940321a5548d21b76b8a52792f6c69a8225b (diff)
add patches
Diffstat (limited to 'x.c')
-rw-r--r--x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/x.c b/x.c
index 6447977..626207c 100644
--- a/x.c
+++ b/x.c
@@ -686,6 +686,7 @@ setsel(char *str, Time t)
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear();
+ clipcopy(NULL);
}
void
@@ -1735,6 +1736,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);
}