Fix a bug from the Linux rewrite where Wayland windows would not render properly (#10343)
Release Notes: - N/A
This commit is contained in:
parent
fff197b227
commit
3fc08a0610
2 changed files with 19 additions and 5 deletions
|
@ -446,11 +446,12 @@ impl Dispatch<xdg_surface::XdgSurface, ObjectId> for WaylandClient {
|
|||
_: &QueueHandle<Self>,
|
||||
) {
|
||||
let mut state = state.0.borrow_mut();
|
||||
let Some(window) = state.windows.get(surface_id).cloned() else {
|
||||
return;
|
||||
};
|
||||
|
||||
// todo(linux): Apply the configuration changes as we go
|
||||
if let xdg_surface::Event::Configure { serial, .. } = event {
|
||||
xdg_surface.ack_configure(serial);
|
||||
}
|
||||
drop(state);
|
||||
window.handle_xdg_surface_event(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue