Browse Source

Squashed commit of the following:

commit b0f37c9fdb
Author: phillbush <phillbush@cock.li>
Date:   Mon Jun 29 09:58:36 2020 -0300

    Compile time error fixes

commit e6bf27768f
Author: Karl Martin <karlmartin895@gmail.com>
Date:   Sun Jun 28 23:08:02 2020 -0400

    v1.01

    add: user can set gap width prefs

commit 0cca216309
Author: Karl Martin <karlmartin895@gmail.com>
Date:   Sun Jun 28 23:04:10 2020 -0400

    INIT: func addition + error fix

    hack + prefs: extra x,y padding for initial menu
    add: x padding for child menus
    fix: 2x compile time errors
master
phillbush 4 years ago
parent
commit
585e3de1a3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      xmenu.c

+ 2
- 1
xmenu.c View File

@@ -9,6 +9,7 @@
#include <X11/XKBlib.h> #include <X11/XKBlib.h>
#include <X11/Xft/Xft.h> #include <X11/Xft/Xft.h>
#include <Imlib2.h> #include <Imlib2.h>
#include <time.h>


#define PROGNAME "xmenu" #define PROGNAME "xmenu"
#define ITEMPREV 0 #define ITEMPREV 0
@@ -740,7 +741,7 @@ drawitem(struct Menu *menu, struct Item *item, XftColor *color)
y = item->y + (item->h + dc.font->ascent) / 2; y = item->y + (item->h + dc.font->ascent) / 2;
XSetForeground(dpy, dc.gc, color[ColorFG].pixel); XSetForeground(dpy, dc.gc, color[ColorFG].pixel);
XftDrawStringUtf8(menu->draw, &color[ColorFG], dc.font, XftDrawStringUtf8(menu->draw, &color[ColorFG], dc.font,
x, y, item->label, item->labellen);
x, y, (XftChar8 *)item->label, item->labellen);


/* draw triangle, if item contains a submenu */ /* draw triangle, if item contains a submenu */
if (item->submenu != NULL) { if (item->submenu != NULL) {


Loading…
Cancel
Save