mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	fix segfault on xwayland "appid"
This commit is contained in:
		
							parent
							
								
									57fef50310
								
							
						
					
					
						commit
						a21c9378ee
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -287,6 +287,8 @@ applyrules(Client *c)
 | 
				
			||||||
		if (!(title = c->xdg_surface->toplevel->title))
 | 
							if (!(title = c->xdg_surface->toplevel->title))
 | 
				
			||||||
			title = broken;
 | 
								title = broken;
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
 | 
							if (!(appid = c->xwayland_surface->class))
 | 
				
			||||||
 | 
								appid = broken;
 | 
				
			||||||
		if (!(title = c->xwayland_surface->title))
 | 
							if (!(title = c->xwayland_surface->title))
 | 
				
			||||||
			title = broken;
 | 
								title = broken;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue