diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-11-04 20:33:32 -0500 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-11-04 20:33:32 -0500 |
| commit | 05871c1a5f0d899794d6215c393e96fd592a42d8 (patch) | |
| tree | b1a84fba4f9ee7d2141791da13d875b8026eb97e /x.c | |
| parent | d63f7119a4bd42d37b8ce7a2a6457b139af5c23d (diff) | |
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -55,6 +55,7 @@ static void clipcopy(const Arg *); static void clippaste(const Arg *); static void numlock(const Arg *); static void selpaste(const Arg *); +static void togglealpha(const Arg *); static void zoom(const Arg *); static void zoomabs(const Arg *); static void zoomreset(const Arg *); @@ -282,6 +283,15 @@ clippaste(const Arg *dummy) } void +togglealpha(const Arg *dummy) +{ + alpha = alpha != 1.0f ? 1.0f : DEFAULT_ALPHA; + dc.col[defaultbg].color.alpha = (unsigned short)(0xFFFF * alpha); + cresize(0, 0); + redraw(); +} + +void selpaste(const Arg *dummy) { XConvertSelection(xw.dpy, XA_PRIMARY, xsel.xtarget, XA_PRIMARY, |
