new libdraw
This commit is contained in:
		
							
								
								
									
										4
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dmenu.c
									
									
									
									
									
								
							@@ -132,7 +132,7 @@ drawmenu(void) {
 | 
				
			|||||||
		if(next)
 | 
							if(next)
 | 
				
			||||||
			drawtext(dc, ">", normcol);
 | 
								drawtext(dc, ">", normcol);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	commitdraw(dc, win, mw, mh);
 | 
						mapdraw(dc, win, mw, mh);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *
 | 
					char *
 | 
				
			||||||
@@ -478,7 +478,7 @@ setup(void) {
 | 
				
			|||||||
	                    CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
 | 
						                    CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	grabkeyboard();
 | 
						grabkeyboard();
 | 
				
			||||||
	setcanvas(dc, mw, mh);
 | 
						resizedraw(dc, mw, mh);
 | 
				
			||||||
	inputw = MIN(inputw, mw/3);
 | 
						inputw = MIN(inputw, mw/3);
 | 
				
			||||||
	promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0;
 | 
						promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0;
 | 
				
			||||||
	XMapRaised(dc->dpy, win);
 | 
						XMapRaised(dc->dpy, win);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user