acosail_dwm/st-0.9/st-clipboard-20180309-c5ba9c0.diff

14 lines
271 B
Diff
Raw Permalink Normal View History

2022-12-02 16:22:44 +08:00
diff --git a/x.c b/x.c
index 13fa9f4..88fd341 100644
--- a/x.c
+++ b/x.c
@@ -624,6 +624,8 @@ setsel(char *str, Time t)
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear();
+
+ xclipcopy();
}
void