summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
Diffstat (limited to 'x.c')
-rw-r--r--x.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/x.c b/x.c
index 881bba6..5e4fc91 100644
--- a/x.c
+++ b/x.c
@@ -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,