mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Revert "Fix bug with for_window [...] move scratchpad"
This reverts commit 0796b0c475.
			
			
This commit is contained in:
		
							parent
							
								
									0796b0c475
								
							
						
					
					
						commit
						d098c620fe
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -15,7 +15,6 @@ bool locked_view_focus = false;
 | 
				
			||||||
static void update_focus(swayc_t *c) {
 | 
					static void update_focus(swayc_t *c) {
 | 
				
			||||||
	// Handle if focus switches
 | 
						// Handle if focus switches
 | 
				
			||||||
	swayc_t *parent = c->parent;
 | 
						swayc_t *parent = c->parent;
 | 
				
			||||||
	if (!parent) return;
 | 
					 | 
				
			||||||
	if (parent->focused != c) {
 | 
						if (parent->focused != c) {
 | 
				
			||||||
		// Get previous focus
 | 
							// Get previous focus
 | 
				
			||||||
		swayc_t *prev = parent->focused;
 | 
							swayc_t *prev = parent->focused;
 | 
				
			||||||
| 
						 | 
					@ -88,7 +87,7 @@ swayc_t *get_focused_container(swayc_t *parent) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool set_focused_container(swayc_t *c) {
 | 
					bool set_focused_container(swayc_t *c) {
 | 
				
			||||||
	if (locked_container_focus || !c || !c->visible || !c->parent) {
 | 
						if (locked_container_focus || !c) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle);
 | 
						swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue