mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Fix xwayland floating views unclickable
Some xwayland views are first configured with a 1x1 size, and then resized. Since the view size isn't updated, they are unclickable. Fixes #2195
This commit is contained in:
		
							parent
							
								
									817e847749
								
							
						
					
					
						commit
						47d56306c3
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -284,6 +284,11 @@ static void handle_commit(struct wl_listener *listener, void *data) {
 | 
				
			||||||
		transaction_notify_view_ready_by_size(view,
 | 
							transaction_notify_view_ready_by_size(view,
 | 
				
			||||||
				surface_state->width, surface_state->height);
 | 
									surface_state->width, surface_state->height);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (container_is_floating(view->swayc)) {
 | 
				
			||||||
 | 
							view_update_size(view, surface_state->width, surface_state->height);
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	view_damage_from(view);
 | 
						view_damage_from(view);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue