some more refactoring
This commit is contained in:
		
							parent
							
								
									5cc27f1b3c
								
							
						
					
					
						commit
						5d9146ff37
					
				
							
								
								
									
										4
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.c
									
									
									
									
									
								
							| @ -19,7 +19,7 @@ | |||||||
| 
 | 
 | ||||||
| char stext[256]; | char stext[256]; | ||||||
| int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; | int bh, bmw, screen, sx, sy, sw, sh, wax, way, waw, wah; | ||||||
| unsigned int master, nmaster, ntags, numlockmask; | unsigned int ntags, numlockmask; | ||||||
| Atom wmatom[WMLast], netatom[NetLast]; | Atom wmatom[WMLast], netatom[NetLast]; | ||||||
| Bool running = True; | Bool running = True; | ||||||
| Bool *seltag; | Bool *seltag; | ||||||
| @ -133,8 +133,6 @@ setup(void) { | |||||||
| 	sx = sy = 0; | 	sx = sy = 0; | ||||||
| 	sw = DisplayWidth(dpy, screen); | 	sw = DisplayWidth(dpy, screen); | ||||||
| 	sh = DisplayHeight(dpy, screen); | 	sh = DisplayHeight(dpy, screen); | ||||||
| 	master = MASTER; |  | ||||||
| 	nmaster = NMASTER; |  | ||||||
| 	bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); | 	bmw = textw(TILESYMBOL) > textw(FLOATSYMBOL) ? textw(TILESYMBOL) : textw(FLOATSYMBOL); | ||||||
| 	/* bar */ | 	/* bar */ | ||||||
| 	dc.h = bh = dc.font.height + 2; | 	dc.h = bh = dc.font.height + 2; | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								tile.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tile.c
									
									
									
									
									
								
							| @ -3,15 +3,17 @@ | |||||||
|  */ |  */ | ||||||
| #include "dwm.h" | #include "dwm.h" | ||||||
| 
 | 
 | ||||||
|  | unsigned int master = MASTER; | ||||||
|  | unsigned int nmaster = NMASTER; | ||||||
|  | 
 | ||||||
| /* static */ | /* static */ | ||||||
| 
 | 
 | ||||||
| static void | static void | ||||||
| togglemax(Client *c) { | togglemax(Client *c) { | ||||||
| 	XEvent ev; | 	XEvent ev; | ||||||
| 		 | 
 | ||||||
| 	if(c->isfixed) | 	if(c->isfixed) | ||||||
| 		return; | 		return; | ||||||
| 
 |  | ||||||
| 	if((c->ismax = !c->ismax)) { | 	if((c->ismax = !c->ismax)) { | ||||||
| 		c->rx = c->x; | 		c->rx = c->x; | ||||||
| 		c->ry = c->y; | 		c->ry = c->y; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anselm R. Garbe
						Anselm R. Garbe