mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
layout/tile: Rename variable
This commit is contained in:
+5
-5
@@ -723,7 +723,7 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
) -> impl Iterator<Item = TileRenderElement<R>> + 'a {
|
) -> impl Iterator<Item = TileRenderElement<R>> + 'a {
|
||||||
let _span = tracy_client::span!("Tile::render_inner");
|
let _span = tracy_client::span!("Tile::render_inner");
|
||||||
|
|
||||||
let alpha = if self.is_fullscreen || self.window.is_ignoring_opacity_window_rule() {
|
let win_alpha = if self.is_fullscreen || self.window.is_ignoring_opacity_window_rule() {
|
||||||
1.
|
1.
|
||||||
} else {
|
} else {
|
||||||
self.window.rules().opacity.unwrap_or(1.).clamp(0., 1.)
|
self.window.rules().opacity.unwrap_or(1.).clamp(0., 1.)
|
||||||
@@ -747,7 +747,7 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
if let Some(resize) = &self.resize_animation {
|
if let Some(resize) = &self.resize_animation {
|
||||||
resize_popups = Some(
|
resize_popups = Some(
|
||||||
self.window
|
self.window
|
||||||
.render_popups(renderer, window_render_loc, scale, alpha, target)
|
.render_popups(renderer, window_render_loc, scale, win_alpha, target)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(Into::into),
|
.map(Into::into),
|
||||||
);
|
);
|
||||||
@@ -797,7 +797,7 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
resize.anim.clamped_value().clamp(0., 1.) as f32,
|
resize.anim.clamped_value().clamp(0., 1.) as f32,
|
||||||
radius,
|
radius,
|
||||||
clip_to_geometry,
|
clip_to_geometry,
|
||||||
alpha,
|
win_alpha,
|
||||||
);
|
);
|
||||||
// FIXME: with split popups, this will use the resize element ID for
|
// FIXME: with split popups, this will use the resize element ID for
|
||||||
// popups, but we want the real IDs.
|
// popups, but we want the real IDs.
|
||||||
@@ -814,7 +814,7 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
SolidColorRenderElement::from_buffer(
|
SolidColorRenderElement::from_buffer(
|
||||||
&fallback_buffer,
|
&fallback_buffer,
|
||||||
area.loc,
|
area.loc,
|
||||||
alpha,
|
win_alpha,
|
||||||
Kind::Unspecified,
|
Kind::Unspecified,
|
||||||
)
|
)
|
||||||
.into(),
|
.into(),
|
||||||
@@ -830,7 +830,7 @@ impl<W: LayoutElement> Tile<W> {
|
|||||||
if resize_shader.is_none() && resize_fallback.is_none() {
|
if resize_shader.is_none() && resize_fallback.is_none() {
|
||||||
let window = self
|
let window = self
|
||||||
.window
|
.window
|
||||||
.render(renderer, window_render_loc, scale, alpha, target);
|
.render(renderer, window_render_loc, scale, win_alpha, target);
|
||||||
|
|
||||||
let geo = Rectangle::new(window_render_loc, window_size);
|
let geo = Rectangle::new(window_render_loc, window_size);
|
||||||
let radius = radius.fit_to(window_size.w as f32, window_size.h as f32);
|
let radius = radius.fit_to(window_size.w as f32, window_size.h as f32);
|
||||||
|
|||||||
Reference in New Issue
Block a user