8 Commits
1.9 ... 2.1

Author SHA1 Message Date
Anselm R. Garbe
6175a39e8e hotfix changes 2007-01-17 11:10:26 +01:00
Anselm R. Garbe
2c7ff85f24 Added tag 2.1 for changeset d91c79020430 2007-01-17 11:10:09 +01:00
Anselm R. Garbe
447046f7ae Added tag 2.0 for changeset 1fce5c464fcd 2007-01-16 11:42:09 +01:00
Anselm R. Garbe
b76632b9e3 small fix 2007-01-16 11:39:26 +01:00
Anselm R. Garbe
f8f5b27036 removed useless mx, my 2007-01-16 11:38:31 +01:00
Anselm R. Garbe
d6bf35caad applied new default colors 2007-01-16 11:24:51 +01:00
Anselm R. Garbe
507c030b5b small fix of Control-j in dmenu.1 2007-01-16 11:07:30 +01:00
Anselm R. Garbe
0245394e4d Added tag 1.9 for changeset c7f5f4d54317 2007-01-12 12:43:44 +01:00
5 changed files with 12 additions and 12 deletions

View File

@@ -17,3 +17,5 @@ dcc5427f99f51a978386a0dd770467cd911ac84b 1.6
58dbef4aef3d45c7a3da6945e53c9667c0f02d5b 1.7 58dbef4aef3d45c7a3da6945e53c9667c0f02d5b 1.7
3696d77aaf02f5d15728dde3b9e35abcaf291496 1.7.1 3696d77aaf02f5d15728dde3b9e35abcaf291496 1.7.1
d3e6fa22ae45b38b1bdb0d813390365e5930360b 1.8 d3e6fa22ae45b38b1bdb0d813390365e5930360b 1.8
c7f5f4d543170f03d70468e98a3a0ec8d2c4161b 1.9
1fce5c464fcd870b9f024aa1853d5cf3a3eb371b 2.0

View File

@@ -1,5 +1,5 @@
# dmenu version # dmenu version
VERSION = 1.9 VERSION = 2.1
# Customize below to fit your system # Customize below to fit your system

View File

@@ -69,12 +69,12 @@ Select the first/last item.
.B Tab (Control-i) .B Tab (Control-i)
Copy the selected item to the input field. Copy the selected item to the input field.
.TP .TP
.B Return .B Return (Control-j)
Confirm selection and quit (print the selected item to standard output). Returns Confirm selection and quit (print the selected item to standard output). Returns
.B 0 .B 0
on termination. on termination.
.TP .TP
.B Shift-Return (Control-j) .B Shift-Return (Control-Shift-j)
Confirm selection and quit (print the text in the input field to standard output). Confirm selection and quit (print the text in the input field to standard output).
Returns Returns
.B 0 .B 0

View File

@@ -5,10 +5,10 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
#define NORMBGCOLOR "#333366" #define NORMBGCOLOR "#eeeeee"
#define NORMFGCOLOR "#cccccc" #define NORMFGCOLOR "#222222"
#define SELBGCOLOR "#666699" #define SELBGCOLOR "#006699"
#define SELFGCOLOR "#eeeeee" #define SELFGCOLOR "#ffffff"
#define SPACE 30 /* px */ #define SPACE 30 /* px */
/* color */ /* color */

8
main.c
View File

@@ -28,7 +28,7 @@ struct Item {
static char text[4096]; static char text[4096];
static char *prompt = NULL; static char *prompt = NULL;
static int mx, my, mw, mh; static int mw, mh;
static int ret = 0; static int ret = 0;
static int nitem = 0; static int nitem = 0;
static unsigned int cmdw = 0; static unsigned int cmdw = 0;
@@ -431,12 +431,10 @@ main(int argc, char *argv[]) {
wa.override_redirect = 1; wa.override_redirect = 1;
wa.background_pixmap = ParentRelative; wa.background_pixmap = ParentRelative;
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask; wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
mx = my = 0;
mw = DisplayWidth(dpy, screen); mw = DisplayWidth(dpy, screen);
mh = dc.font.height + 2; mh = dc.font.height + 2;
if(bottom) win = XCreateWindow(dpy, root, 0,
my += DisplayHeight(dpy, screen) - mh; bottom ? DisplayHeight(dpy, screen) - mh : 0, mw, mh, 0,
win = XCreateWindow(dpy, root, mx, my, mw, mh, 0,
DefaultDepth(dpy, screen), CopyFromParent, DefaultDepth(dpy, screen), CopyFromParent,
DefaultVisual(dpy, screen), DefaultVisual(dpy, screen),
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);