1 Binary files dmenu-4.3.1.orig/dmenu and dmenu-4.3.1/dmenu differ
2 diff -p dmenu-4.3.1.orig/dmenu.1 dmenu-4.3.1/dmenu.1
3 *** dmenu-4.3.1.orig/dmenu.1 2011-05-20 13:19:54.750580965 +0800
4 --- dmenu-4.3.1/dmenu.1 2011-05-20 13:32:24.873183868 +0800
5 *************** dmenu \- dynamic menu
16 *************** defines the selected background color.
20 defines the selected foreground color.
23 + selects screen to be displayed on.
26 prints version information to stdout, then exits.
28 diff -p dmenu-4.3.1.orig/dmenu.c dmenu-4.3.1/dmenu.c
29 *** dmenu-4.3.1.orig/dmenu.c 2011-05-20 13:19:54.750580965 +0800
30 --- dmenu-4.3.1/dmenu.c 2011-05-20 13:33:41.539435198 +0800
31 *************** static char text[BUFSIZ] = "";
34 static int bh, mw, mh;
35 static int inputw, promptw;
37 + static int selscreen = -1;
38 static size_t cursor = 0;
39 static const char *font = NULL;
40 static const char *prompt = NULL;
41 *************** main(int argc, char *argv[]) {
44 selbgcolor = argv[++i];
45 else if(!strcmp(argv[i], "-sf"))
46 selfgcolor = argv[++i];
47 + else if(!strcmp(argv[i], "-m"))
48 + selscreen = atoi(argv[++i]);
52 *************** setup(void) {
57 ! XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);
58 ! for(i = 0; i < n-1; i++)
59 ! if(INRECT(x, y, info[i].x_org, info[i].y_org, info[i].width, info[i].height))
62 y = info[i].y_org + (topbar ? 0 : info[i].height - mh);
68 ! if (selscreen >= 0 && selscreen < n)
71 ! XQueryPointer(dc->dpy, root, &dw, &dw, &x, &y, &di, &di, &du);
72 ! for(i = 0; i < n-1; i++)
73 ! if(INRECT(x, y, info[i].x_org, info[i].y_org, info[i].width, info[i].height))
77 y = info[i].y_org + (topbar ? 0 : info[i].height - mh);
79 *************** setup(void) {
83 fputs("usage: dmenu [-b] [-f] [-i] [-l lines] [-p prompt] [-fn font]\n"
84 ! " [-nb color] [-nf color] [-sb color] [-sf color] [-v]\n", stderr);
90 fputs("usage: dmenu [-b] [-f] [-i] [-l lines] [-p prompt] [-fn font]\n"
91 ! " [-nb color] [-nf color] [-sb color] [-sf color] [-m screen] [-v]\n", stderr);
94 Binary files dmenu-4.3.1.orig/dmenu.o and dmenu-4.3.1/dmenu.o differ