fixed cleanup, using clients instead of sel
This commit is contained in:
		
							
								
								
									
										6
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.c
									
									
									
									
									
								
							@@ -40,9 +40,9 @@ static Bool otherwm, readin;
 | 
				
			|||||||
static void
 | 
					static void
 | 
				
			||||||
cleanup(void) {
 | 
					cleanup(void) {
 | 
				
			||||||
	close(STDIN_FILENO);
 | 
						close(STDIN_FILENO);
 | 
				
			||||||
	while(sel) {
 | 
						while(clients) {
 | 
				
			||||||
		resize(sel, True, TopLeft);
 | 
							resize(clients, True, TopLeft);
 | 
				
			||||||
		unmanage(sel);
 | 
							unmanage(clients);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if(dc.font.set)
 | 
						if(dc.font.set)
 | 
				
			||||||
		XFreeFontSet(dpy, dc.font.set);
 | 
							XFreeFontSet(dpy, dc.font.set);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user