[CONTACT]

[ABOUT]

[POLICY]

git clone dmenu dmenu Log gph

Found at: gopher.r-36.net:70/scm/dmenu/commit/31ffcd3b9a2beccb8b8830055748e52e07b3b258.gph

tnew libdraw, typo fixes - dmenu - Dmenu fork with xft fonts.

git clone git://r-36.net/dmenu

Log

Files

Refs

README

LICENSE

---

commit 31ffcd3b9a2beccb8b8830055748e52e07b3b258

parent 9cf07b4b9b0d8feb53492ac11aa97a1405246cb4

Author: Connor Lane Smith

Date:   Thu,  5 Aug 2010 15:41:56 +0100
new libdraw, typo fixes
Diffstat:
  dmenu.1                             |       2 +-
  dmenu.c                             |      10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---

diff --git a/dmenu.1 b/dmenu.1

t@@ -52,7 +52,7 @@ dmenu matches menu items case insensitively.
 dmenu lists items vertically, with the given number of lines.
 .TP
 .BI \-p " prompt"
-defines the prompt to be displayed to the left of the input area.
+defines the prompt to be displayed to the left of the input field.
 .TP
 .BI \-fn " font"
 defines the font set used.

diff --git a/dmenu.c b/dmenu.c

t@@ -119,7 +119,7 @@ drawmenu(void) {
                 dc->x = dc->w;
         }
         dc->w = mw - dc->x;
-        /* print input area */
+        /* print input field */
         if(matches && lines == 0 && textw(dc, text) <= inputw)
                 dc->w = inputw;
         drawtext(dc, text, normcol);
t@@ -339,7 +339,7 @@ keypress(XKeyEvent *e) {
 void
 match(void) {
-        unsigned int len;
+        size_t len;
         Item *item, *itemend, *lexact, *lprefix, *lsubstr, *exactend, *prefixend, *substrend;
         len = strlen(text);
t@@ -454,7 +454,7 @@ setup(void) {
         selcol[ColBG] = getcolor(dc, selbgcolor);
         selcol[ColFG] = getcolor(dc, selfgcolor);
-        /* input window geometry */
+        /* menu geometry */
         mh = (dc->font.height + 2) * (lines + 1);
 #ifdef XINERAMA
         if((info = XineramaQueryScreens(dc->dpy, &n))) {
t@@ -478,7 +478,7 @@ setup(void) {
                 y = topbar ? 0 : DisplayHeight(dc->dpy, screen) - mh;
                 mw = DisplayWidth(dc->dpy, screen);
         }
-        /* input window */
+        /* menu window */
         wa.override_redirect = True;
         wa.background_pixmap = ParentRelative;
         wa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
t@@ -488,7 +488,7 @@ setup(void) {
                         CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
         grabkeyboard();
-        setcanvas(dc, win, mw, mh);
+        setcanvas(dc, mw, mh);
         inputw = MIN(inputw, mw/3);
         promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0;
         XMapRaised(dc->dpy, win);
.


AD: