mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix gcc maybe-uninitialized warning
This commit is contained in:
		
							parent
							
								
									25af959fe9
								
							
						
					
					
						commit
						8490d1662c
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -288,8 +288,11 @@ void container_move(struct sway_container *container,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		switch (current->type) {
 | 
							switch (current->type) {
 | 
				
			||||||
		case C_OUTPUT: {
 | 
							case C_OUTPUT: {
 | 
				
			||||||
			enum wlr_direction wlr_dir;
 | 
								enum wlr_direction wlr_dir = 0;
 | 
				
			||||||
			sway_dir_to_wlr(move_dir, &wlr_dir);
 | 
								if (!sway_assert(sway_dir_to_wlr(move_dir, &wlr_dir),
 | 
				
			||||||
 | 
											"got invalid direction: %d", move_dir)) {
 | 
				
			||||||
 | 
									return;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			double ref_lx = current->x + current->width / 2;
 | 
								double ref_lx = current->x + current->width / 2;
 | 
				
			||||||
			double ref_ly = current->y + current->height / 2;
 | 
								double ref_ly = current->y + current->height / 2;
 | 
				
			||||||
			struct wlr_output *next = wlr_output_layout_adjacent_output(
 | 
								struct wlr_output *next = wlr_output_layout_adjacent_output(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue