small change of main event loop
This commit is contained in:
		
							parent
							
								
									49ce444d32
								
							
						
					
					
						commit
						04eade6a76
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								main.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								main.c
									
										
									
									
									
								
							|  | @ -354,6 +354,8 @@ main(int argc, char *argv[]) | |||
| 	/* main event loop */ | ||||
| 	while(running && !XNextEvent(dpy, &ev)) { | ||||
| 		switch (ev.type) { | ||||
| 		default:	/* ignore all crap */ | ||||
| 			break; | ||||
| 		case KeyPress: | ||||
| 			kpress(&ev.xkey); | ||||
| 			break; | ||||
|  | @ -361,8 +363,6 @@ main(int argc, char *argv[]) | |||
| 			if(ev.xexpose.count == 0) | ||||
| 				drawmenu(); | ||||
| 			break; | ||||
| 		default: | ||||
| 			break; | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue