moved LENGTH to dwm.c, moved prevtags to dwm.c
This commit is contained in:
		
							parent
							
								
									35efafe8ac
								
							
						
					
					
						commit
						198502f41d
					
				| @ -11,13 +11,9 @@ | |||||||
| #define SELBGCOLOR		"#0066ff" | #define SELBGCOLOR		"#0066ff" | ||||||
| #define SELFGCOLOR		"#ffffff" | #define SELFGCOLOR		"#ffffff" | ||||||
| 
 | 
 | ||||||
| /* convenience */ |  | ||||||
| #define LENGTH(x) (sizeof x / sizeof x[0]) |  | ||||||
| 
 |  | ||||||
| /* tagging */ | /* tagging */ | ||||||
| const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; | const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; | ||||||
| Bool seltags[LENGTH(tags)] = {[0] = True}; | Bool seltags[LENGTH(tags)] = {[0] = True}; | ||||||
| Bool prevtags[LENGTH(tags)] = {[0] = True}; |  | ||||||
| Rule rules[] = { | Rule rules[] = { | ||||||
| 	/* class:instance:title regex	tags regex	isfloating */ | 	/* class:instance:title regex	tags regex	isfloating */ | ||||||
| 	{ "Firefox",			"www",		False }, | 	{ "Firefox",			"www",		False }, | ||||||
|  | |||||||
							
								
								
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							| @ -45,6 +45,8 @@ | |||||||
| #define BUTTONMASK		(ButtonPressMask | ButtonReleaseMask) | #define BUTTONMASK		(ButtonPressMask | ButtonReleaseMask) | ||||||
| #define CLEANMASK(mask)		(mask & ~(numlockmask | LockMask)) | #define CLEANMASK(mask)		(mask & ~(numlockmask | LockMask)) | ||||||
| #define MOUSEMASK		(BUTTONMASK | PointerMotionMask) | #define MOUSEMASK		(BUTTONMASK | PointerMotionMask) | ||||||
|  | #define LENGTH(x)		(sizeof x / sizeof x[0]) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| /* enums */ | /* enums */ | ||||||
| enum { BarTop, BarBot, BarOff };			/* bar position */ | enum { BarTop, BarBot, BarOff };			/* bar position */ | ||||||
| @ -229,6 +231,8 @@ Regs *regs = NULL; | |||||||
| /* configuration, allows nested code to access above variables */ | /* configuration, allows nested code to access above variables */ | ||||||
| #include "config.h" | #include "config.h" | ||||||
| 
 | 
 | ||||||
|  | Bool prevtags[LENGTH(tags)] = {[0] = True}; | ||||||
|  | 
 | ||||||
| /* function implementations */ | /* function implementations */ | ||||||
| void | void | ||||||
| applyrules(Client *c) { | applyrules(Client *c) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user