mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	SendToDesktop: ensure we focus the topmost view with follow=no
Fixes: #1800
This commit is contained in:
		
							parent
							
								
									b6ecb1068e
								
							
						
					
					
						commit
						208f383c66
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -918,6 +918,11 @@ actions_run(struct view *activator, struct server *server,
 | 
			
		|||
				if (action->type == ACTION_TYPE_SEND_TO_DESKTOP) {
 | 
			
		||||
					view_move_to_workspace(view, target);
 | 
			
		||||
					follow = action_get_bool(action, "follow", true);
 | 
			
		||||
 | 
			
		||||
					/* Ensure that the focus is not on another desktop */
 | 
			
		||||
					if (!follow && server->active_view == view) {
 | 
			
		||||
						desktop_focus_topmost_view(server);
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
				if (follow) {
 | 
			
		||||
					workspaces_switch_to(target,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue