Fix high-signal widget and Wayland warnings
Avoid recursive operation traversal, execute visible list updates instead of leaving a lazy iterator unused, remove unreachable cfg-gated surface creation code, and handle subsurface buffer attachment failures.
This commit is contained in:
parent
8440b6c05b
commit
4eea46bdd9
4 changed files with 11 additions and 5 deletions
|
|
@ -153,9 +153,12 @@ impl PlatformSpecific {
|
|||
) -> Option<Box<dyn HasWindowHandle + Send + Sync + 'static>> {
|
||||
#[cfg(all(feature = "cctk", target_os = "linux"))]
|
||||
{
|
||||
return self.wayland.create_surface();
|
||||
self.wayland.create_surface()
|
||||
}
|
||||
#[cfg(not(all(feature = "cctk", target_os = "linux")))]
|
||||
{
|
||||
None
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
pub(crate) fn update_surface_shm(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue