mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	fix condition that always evaluate to false in commitlayersurfacenotify()
This commit is contained in:
		
							parent
							
								
									80084839a9
								
							
						
					
					
						commit
						d1496a2a9b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -792,7 +792,7 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
 | 
				
			||||||
	if (!wlr_output || !(layersurface->mon = wlr_output->data))
 | 
						if (!wlr_output || !(layersurface->mon = wlr_output->data))
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (layers[wlr_layer_surface->current.layer] != layersurface->scene) {
 | 
						if (layers[wlr_layer_surface->current.layer] != layersurface->scene->parent) {
 | 
				
			||||||
		wlr_scene_node_reparent(layersurface->scene,
 | 
							wlr_scene_node_reparent(layersurface->scene,
 | 
				
			||||||
				layers[wlr_layer_surface->current.layer]);
 | 
									layers[wlr_layer_surface->current.layer]);
 | 
				
			||||||
		wl_list_remove(&layersurface->link);
 | 
							wl_list_remove(&layersurface->link);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue