From 7312dfa70a462a74e9d3894f0d0d35344ad9c264 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Fri, 9 Sep 2011 19:52:58 +0200 Subject: [PATCH] removed multiline code This were fragments from dmenu code that aren't used in dunst. --- dunst.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dunst.c b/dunst.c index d34fc60..0ff06cb 100644 --- a/dunst.c +++ b/dunst.c @@ -13,7 +13,6 @@ #include "draw.h" - #define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define MAX(a,b) ((a) > (b) ? (a) : (b)) @@ -28,10 +27,9 @@ typedef struct _msg_queue_t { /* global variables */ -static int bh, mw, mh; +static int mw, mh; static int expand = True; static int right = False; -static int lines = 0; static const char *font = NULL; static const char *normbgcolor = "#cccccc"; static const char *normfgcolor = "#000000"; @@ -218,9 +216,7 @@ setup(void) { utf8 = XInternAtom(dc->dpy, "UTF8_STRING", False); /* menu geometry */ - bh = dc->font.height + 2; - lines = MAX(lines, 0); - mh = (lines + 1) * bh; + mh = dc->font.height + 2; #ifdef XINERAMA if((info = XineramaQueryScreens(dc->dpy, &n))) { int i, di;