some cleanup
This commit is contained in:
parent
918e440084
commit
799cdfffda
11
spmenu.c
11
spmenu.c
|
@ -72,6 +72,8 @@ enum { SchemeLArrow,
|
||||||
SchemeBorder,
|
SchemeBorder,
|
||||||
SchemeLast }; /* color schemes */
|
SchemeLast }; /* color schemes */
|
||||||
|
|
||||||
|
static char text[BUFSIZ] = "";
|
||||||
|
|
||||||
struct item {
|
struct item {
|
||||||
char *text;
|
char *text;
|
||||||
struct item *left, *right;
|
struct item *left, *right;
|
||||||
|
@ -93,7 +95,6 @@ typedef struct {
|
||||||
} Key;
|
} Key;
|
||||||
|
|
||||||
static char numbers[NUMBERSBUFSIZE] = "";
|
static char numbers[NUMBERSBUFSIZE] = "";
|
||||||
static char text[BUFSIZ] = "";
|
|
||||||
static char *embed;
|
static char *embed;
|
||||||
static int numlockmask = 0;
|
static int numlockmask = 0;
|
||||||
static int bh, mw, mh;
|
static int bh, mw, mh;
|
||||||
|
@ -841,10 +842,11 @@ paste(const Arg *arg)
|
||||||
{
|
{
|
||||||
int clipboard;
|
int clipboard;
|
||||||
|
|
||||||
if (arg->i == 1)
|
if (arg->i == 1) {
|
||||||
clipboard = XA_PRIMARY;
|
clipboard = XA_PRIMARY;
|
||||||
else
|
} else {
|
||||||
clipboard = clip;
|
clipboard = clip;
|
||||||
|
}
|
||||||
|
|
||||||
XConvertSelection(dpy, clipboard, utf8, utf8, win, CurrentTime);
|
XConvertSelection(dpy, clipboard, utf8, utf8, win, CurrentTime);
|
||||||
return;
|
return;
|
||||||
|
@ -984,10 +986,7 @@ moveend(const Arg *arg)
|
||||||
void
|
void
|
||||||
navhistory(const Arg *arg)
|
navhistory(const Arg *arg)
|
||||||
{
|
{
|
||||||
char buf[64];
|
|
||||||
|
|
||||||
navighistory(arg->i);
|
navighistory(arg->i);
|
||||||
buf[0] = 0;
|
|
||||||
drawmenu();
|
drawmenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue