fix: shouldn't configure uninitialized layer_surface
This commit is contained in:
		
							
								
								
									
										3
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								dwl.c
									
									
									
									
									
								
							| @@ -551,6 +551,9 @@ arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, int | ||||
| 	wl_list_for_each(l, list, link) { | ||||
| 		struct wlr_layer_surface_v1 *layer_surface = l->layer_surface; | ||||
|  | ||||
| 		if (!layer_surface->initialized) | ||||
| 			continue; | ||||
|  | ||||
| 		if (exclusive != (layer_surface->current.exclusive_zone > 0)) | ||||
| 			continue; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user