mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Implement assign to output
Eg. assign [class="Firefox"] output foo
This commit is contained in:
		
							parent
							
								
									3a13455b4e
								
							
						
					
					
						commit
						54b00d351e
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -564,7 +564,11 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface) {
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			focus = seat_get_focus_inactive(seat, workspace);
 | 
								focus = seat_get_focus_inactive(seat, workspace);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			// TODO: CT_ASSIGN_OUTPUT
 | 
								// CT_ASSIGN_OUTPUT
 | 
				
			||||||
 | 
								struct sway_container *output = output_by_name(criteria->target);
 | 
				
			||||||
 | 
								if (output) {
 | 
				
			||||||
 | 
									focus = seat_get_focus_inactive(seat, output);
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	// If we're about to launch the view into the floating container, then
 | 
						// If we're about to launch the view into the floating container, then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue