bar height
This commit is contained in:
		| @ -4,6 +4,8 @@ | |||||||
| static int topbar = 1;                      /* -b  option; if 0, dmenu appears at bottom     */ | static int topbar = 1;                      /* -b  option; if 0, dmenu appears at bottom     */ | ||||||
| static const unsigned int alpha = 0xf0; | static const unsigned int alpha = 0xf0; | ||||||
| /* -fn option overrides fonts[0]; default X11 font or font set */ | /* -fn option overrides fonts[0]; default X11 font or font set */ | ||||||
|  | static const int user_bt = 0;               /* add an defined amount of pixels to the bar height */ | ||||||
|  |  | ||||||
| static const char *fonts[] = { | static const char *fonts[] = { | ||||||
| 	"monospace:size=10" | 	"monospace:size=10" | ||||||
| }; | }; | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								dmenu.c
									
									
									
									
									
								
							| @ -643,7 +643,8 @@ setup(void) | |||||||
| 	utf8 = XInternAtom(dpy, "UTF8_STRING", False); | 	utf8 = XInternAtom(dpy, "UTF8_STRING", False); | ||||||
|  |  | ||||||
| 	/* calculate menu geometry */ | 	/* calculate menu geometry */ | ||||||
| 	bh = drw->fonts->h + 2; | 	bh = drw->fonts->h; | ||||||
|  | 	bh = user_bh ? bh + user_bh : bh + 2; | ||||||
| 	lines = MAX(lines, 0); | 	lines = MAX(lines, 0); | ||||||
| 	mh = (lines + 1) * bh; | 	mh = (lines + 1) * bh; | ||||||
| #ifdef XINERAMA | #ifdef XINERAMA | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user