mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	remove useless check of m in arrangelayers()
				
					
				
			it is supossed to avoid a crash when we pass m=NULL as argument however it would crash anyway and also because we should not pass m=NULL
This commit is contained in:
		
							parent
							
								
									cd96f889b8
								
							
						
					
					
						commit
						d14ee99661
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		
							
								
								
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -596,8 +596,6 @@ arrangelayers(Monitor *m)
 | 
				
			||||||
		ZWLR_LAYER_SHELL_V1_LAYER_TOP,
 | 
							ZWLR_LAYER_SHELL_V1_LAYER_TOP,
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	LayerSurface *layersurface;
 | 
						LayerSurface *layersurface;
 | 
				
			||||||
	if (!m || !m->wlr_output->enabled)
 | 
					 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Arrange exclusive surfaces from top->bottom */
 | 
						/* Arrange exclusive surfaces from top->bottom */
 | 
				
			||||||
	for (i = 3; i >= 0; i--)
 | 
						for (i = 3; i >= 0; i--)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue