mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Chase wlroots: wlr_output_layout refactor
Chases 097ea84cda70a71ad8ea5940b3b3d277167424e5 output-layout: improve API
This commit is contained in:
		
							parent
							
								
									46e3e29e26
								
							
						
					
					
						commit
						d0b24f73d7
					
				
					 2 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -330,8 +330,12 @@ output_config_apply(struct server *server,
 | 
			
		|||
			struct wlr_box pos = {0};
 | 
			
		||||
			wlr_output_layout_get_box(server->output_layout, o, &pos);
 | 
			
		||||
			if (pos.x != head->state.x || pos.y != head->state.y) {
 | 
			
		||||
				/* This overrides the automatic layout */
 | 
			
		||||
				wlr_output_layout_move(server->output_layout, o,
 | 
			
		||||
				/*
 | 
			
		||||
				 * This overrides the automatic layout
 | 
			
		||||
				 *
 | 
			
		||||
				 * wlr_output_layout_add() in fact means _move()
 | 
			
		||||
				 */
 | 
			
		||||
				wlr_output_layout_add(server->output_layout, o,
 | 
			
		||||
					head->state.x, head->state.y);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue