projects
/
xmenu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove -t; prepare for mergint into master
[xmenu]
/
xmenu.c
diff --git
a/xmenu.c
b/xmenu.c
index
acdabc2
..
f2eaab4
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-141,7
+141,7
@@
getoptions(int argc, char *argv[])
{
int ch;
{
int ch;
- while ((ch = getopt(argc, argv, "ip:r
t
w")) != -1) {
+ while ((ch = getopt(argc, argv, "ip:rw")) != -1) {
switch (ch) {
case 'i':
iflag = 1;
switch (ch) {
case 'i':
iflag = 1;
@@
-153,9
+153,6
@@
getoptions(int argc, char *argv[])
case 'r':
rflag = 1;
break;
case 'r':
rflag = 1;
break;
- case 't':
- config.typetoselect = !config.typetoselect;
- break;
case 'w':
wflag = 1;
break;
case 'w':
wflag = 1;
break;
@@
-1376,8
+1373,6
@@
enteritem:
break;
default:
append:
break;
default:
append:
- if (!config.typetoselect)
- break;
for (i = 0; i < 2; i++) {
append(text, buf, sizeof text, len);
if ((item = matchitem(currmenu, text, 0)))
for (i = 0; i < 2; i++) {
append(text, buf, sizeof text, len);
if ((item = matchitem(currmenu, text, 0)))
@@
-1490,7
+1485,7
@@
main(int argc, char *argv[])
if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL)
errx(1, "XOpenIM: could not open input device");
if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL)
errx(1, "XOpenIM: could not open input device");
- /*
get configuration
*/
+ /*
process configuration and window class
*/
getresources();
classh.res_class = PROGNAME;
classh.res_name = getoptions(argc, argv);
getresources();
classh.res_class = PROGNAME;
classh.res_name = getoptions(argc, argv);