Compare commits
3 Commits
feat/bold-
...
feat/clipb
Author | SHA1 | Date | |
---|---|---|---|
75dea136df | |||
54a348518d | |||
fb7383d52f |
10
x.c
10
x.c
@ -689,6 +689,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
|
||||
@ -712,7 +714,9 @@ brelease(XEvent *e)
|
||||
|
||||
if (mouseaction(e, 1))
|
||||
return;
|
||||
if (btn == Button1)
|
||||
if (btn == Button3)
|
||||
selpaste(NULL);
|
||||
else if (btn == Button1)
|
||||
mousesel(e, 1);
|
||||
}
|
||||
|
||||
@ -1433,10 +1437,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
|
||||
bg = &dc.col[base.bg];
|
||||
}
|
||||
|
||||
/* Change basic system colors [0-7] to bright system colors [8-15] */
|
||||
if ((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7))
|
||||
fg = &dc.col[base.fg + 8];
|
||||
|
||||
if (IS_SET(MODE_REVERSE)) {
|
||||
if (fg == &dc.col[defaultfg]) {
|
||||
fg = &dc.col[defaultbg];
|
||||
|
Reference in New Issue
Block a user