diff options
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, |
