introduced new define RESIZEHINTS, which allows to enable/disable size hint handling in tiled resizals
This commit is contained in:
		
							parent
							
								
									169d96ae8f
								
							
						
					
					
						commit
						ae760f3f38
					
				
					 4 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -31,6 +31,7 @@ static Layout layouts[] = { \
 | 
				
			||||||
	{ "[]=",		tile }, /* first entry is default */ \
 | 
						{ "[]=",		tile }, /* first entry is default */ \
 | 
				
			||||||
	{ "><>",		floating }, \
 | 
						{ "><>",		floating }, \
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					#define RESIZEHINTS		False	/* True - respect size hints in tiled resizals */
 | 
				
			||||||
#define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
 | 
					#define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
 | 
				
			||||||
#define SNAP			32	/* snap pixel */
 | 
					#define SNAP			32	/* snap pixel */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,6 +32,7 @@ static Layout layouts[] = { \
 | 
				
			||||||
	{ "[]=",		tile }, /* first entry is default */ \
 | 
						{ "[]=",		tile }, /* first entry is default */ \
 | 
				
			||||||
	{ "><>",		floating }, \
 | 
						{ "><>",		floating }, \
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					#define RESIZEHINTS		False	/* True - respect size hints in tiled resizals */
 | 
				
			||||||
#define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
 | 
					#define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
 | 
				
			||||||
#define SNAP			32	/* snap pixel */
 | 
					#define SNAP			32	/* snap pixel */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
# dwm version
 | 
					# dwm version
 | 
				
			||||||
VERSION = 4.4.1
 | 
					VERSION = 4.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Customize below to fit your system
 | 
					# Customize below to fit your system
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								tile.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								tile.c
									
										
									
									
									
								
							| 
						 | 
					@ -63,7 +63,7 @@ tile(void) {
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
				nh = th - 2 * c->border;
 | 
									nh = th - 2 * c->border;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		resize(c, nx, ny, nw, nh, False);
 | 
							resize(c, nx, ny, nw, nh, RESIZEHINTS);
 | 
				
			||||||
		if(n > 1 && th != wah)
 | 
							if(n > 1 && th != wah)
 | 
				
			||||||
			ny += nh + 2 * c->border;
 | 
								ny += nh + 2 * c->border;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue