Fix extra newline, and add -g where other switches are forwarded.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
		
							parent
							
								
									a5b85836ac
								
							
						
					
					
						commit
						24ec46fc24
					
				
							
								
								
									
										4
									
								
								surf.c
								
								
								
								
							
							
						
						
									
										4
									
								
								surf.c
								
								
								
								
							| 
						 | 
				
			
			@ -957,9 +957,11 @@ newwindow(Client *c, const Arg *arg, gboolean noembed) {
 | 
			
		|||
		cmd[i++] = "-b";
 | 
			
		||||
	if(embed && !noembed) {
 | 
			
		||||
		cmd[i++] = "-e";
 | 
			
		||||
		snprintf(tmp, LENGTH(tmp), "%u\n", (int)embed);
 | 
			
		||||
		snprintf(tmp, LENGTH(tmp), "%u", (int)embed);
 | 
			
		||||
		cmd[i++] = tmp;
 | 
			
		||||
	}
 | 
			
		||||
	if(!allowgeolocation)
 | 
			
		||||
		cmd[i++] = "-g";
 | 
			
		||||
	if(!loadimages)
 | 
			
		||||
		cmd[i++] = "-i";
 | 
			
		||||
	if(kioskmode)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue