mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: Rename/move workspaces_send_to() to view_move_to_workspace()
This function semantically belongs in view.c since it modifies `struct view`. Also a minor formatting fix in view_toggle_always_on_top().
This commit is contained in:
		
							parent
							
								
									0e6d99e0ca
								
							
						
					
					
						commit
						c67c6691ac
					
				
					 5 changed files with 16 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -270,18 +270,6 @@ workspaces_switch_to(struct workspace *target)
 | 
			
		|||
	_osd_show(target->server);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
workspaces_send_to(struct view *view, struct workspace *target)
 | 
			
		||||
{
 | 
			
		||||
	assert(view);
 | 
			
		||||
	assert(target);
 | 
			
		||||
	if (view->workspace == target) {
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
	wlr_scene_node_reparent(&view->scene_tree->node, target->tree);
 | 
			
		||||
	view->workspace = target;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
workspaces_osd_hide(struct seat *seat)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue