mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix potential crash when toggling fullscreen mode
This commit is contained in:
		
							parent
							
								
									6f424ff6b8
								
							
						
					
					
						commit
						c068f47ce3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -290,8 +290,8 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s
 | 
			
		|||
		// i3 just lets it become fullscreen
 | 
			
		||||
		wlc_view_set_state(view, state, toggle);
 | 
			
		||||
		c = get_swayc_for_handle(view, &root_container);
 | 
			
		||||
		sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
 | 
			
		||||
		if (c) {
 | 
			
		||||
			sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
 | 
			
		||||
			arrange_windows(c->parent, -1, -1);
 | 
			
		||||
			// Set it as focused window for that workspace if its going fullscreen
 | 
			
		||||
			if (toggle) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue