/* modifier key function argument */
{ MODKEY|ShiftMask, XK_Prior, xzoom, {.i = +1} },
{ MODKEY|ShiftMask, XK_Next, xzoom, {.i = -1} },
+ { ShiftMask, XK_Insert, selpaste, {.i = 0} },
};
/* function definitions used in config.h */
static void xzoom(const Arg *);
+static void selpaste(const Arg *);
/* Config.h for applying patches and the configuration. */
#include "config.h"
static void selinit(void);
static inline bool selected(int, int);
static void selcopy(void);
-static void selpaste(void);
static void selscroll(int, int);
static int utf8decode(char *, long *);
}
void
-selpaste(void) {
+selpaste(const Arg *dummy) {
XConvertSelection(xw.dpy, XA_PRIMARY, sel.xtarget, XA_PRIMARY,
xw.win, CurrentTime);
}
}
if(e->xbutton.button == Button2) {
- selpaste();
+ selpaste(NULL);
} else if(e->xbutton.button == Button1) {
sel.mode = 0;
getbuttoninfo(e, NULL, &sel.ex, &sel.ey);
(shift ? "dacb":"DACB")[ksym - XK_Left]);
len = 3;
break;
- case XK_Insert:
- if(shift) {
- selpaste();
- return;
- }
- memcpy(buf, xstr, len);
- break;
case XK_Return:
len = 0;
if(meta)