Commit d0ae4e0b0715
tarball1 file changed+4-3
@@ -38,9 +38,10 @@ impl State {
3838
}3939
4040
pub fn send_scale(&self, surface: &WlSurface) {41
- let xwayland = surface42
- .client()43
- .is_some_and(|c| c.get_data::<smithay::xwayland::XWaylandClientData>().is_some());41
+ let xwayland = surface.client().is_some_and(|c| {42
+ c.get_data::<smithay::xwayland::XWaylandClientData>()43
+ .is_some()44
+ });4445
match self.scale_output(surface).filter(|_| !xwayland) {4546
Some(output) => {4647
let scale = output.current_scale();