forge
Explore
Log in

Don't you dare go Hollow

layout/tile: Rename variable

Browse files at this commit

9fc749f3d420e2312c53e6179bfc99753d89e52fIvan MolodetskikhParent: f836d1c
src/layout/tile.rsmodified+5 -5
@@ -723,7 +723,7 @@ impl<W: LayoutElement> Tile<W> {
723 ) -> impl Iterator<Item = TileRenderElement<R>> + 'a {723 ) -> impl Iterator<Item = TileRenderElement<R>> + 'a {
724 let _span = tracy_client::span!("Tile::render_inner");724 let _span = tracy_client::span!("Tile::render_inner");
725 725
726- let alpha = if self.is_fullscreen || self.window.is_ignoring_opacity_window_rule() {726+ let win_alpha = if self.is_fullscreen || self.window.is_ignoring_opacity_window_rule() {
727 1.727 1.
728 } else {728 } else {
729 self.window.rules().opacity.unwrap_or(1.).clamp(0., 1.)729 self.window.rules().opacity.unwrap_or(1.).clamp(0., 1.)
@@ -747,7 +747,7 @@ impl<W: LayoutElement> Tile<W> {
747 if let Some(resize) = &self.resize_animation {747 if let Some(resize) = &self.resize_animation {
748 resize_popups = Some(748 resize_popups = Some(
749 self.window749 self.window
750- .render_popups(renderer, window_render_loc, scale, alpha, target)750+ .render_popups(renderer, window_render_loc, scale, win_alpha, target)
751 .into_iter()751 .into_iter()
752 .map(Into::into),752 .map(Into::into),
753 );753 );
@@ -797,7 +797,7 @@ impl<W: LayoutElement> Tile<W> {
797 resize.anim.clamped_value().clamp(0., 1.) as f32,797 resize.anim.clamped_value().clamp(0., 1.) as f32,
798 radius,798 radius,
799 clip_to_geometry,799 clip_to_geometry,
800- alpha,800+ win_alpha,
801 );801 );
802 // FIXME: with split popups, this will use the resize element ID for802 // FIXME: with split popups, this will use the resize element ID for
803 // popups, but we want the real IDs.803 // popups, but we want the real IDs.
@@ -814,7 +814,7 @@ impl<W: LayoutElement> Tile<W> {
814 SolidColorRenderElement::from_buffer(814 SolidColorRenderElement::from_buffer(
815 &fallback_buffer,815 &fallback_buffer,
816 area.loc,816 area.loc,
817- alpha,817+ win_alpha,
818 Kind::Unspecified,818 Kind::Unspecified,
819 )819 )
820 .into(),820 .into(),
@@ -830,7 +830,7 @@ impl<W: LayoutElement> Tile<W> {
830 if resize_shader.is_none() && resize_fallback.is_none() {830 if resize_shader.is_none() && resize_fallback.is_none() {
831 let window = self831 let window = self
832 .window832 .window
833- .render(renderer, window_render_loc, scale, alpha, target);833+ .render(renderer, window_render_loc, scale, win_alpha, target);
834 834
835 let geo = Rectangle::new(window_render_loc, window_size);835 let geo = Rectangle::new(window_render_loc, window_size);
836 let radius = radius.fit_to(window_size.w as f32, window_size.h as f32);836 let radius = radius.fit_to(window_size.w as f32, window_size.h as f32);