move: Render translucent on non-active output

This commit is contained in:
Victoria Brekenfeld 2023-10-11 19:16:51 +02:00
parent 2e962366d4
commit aec8263e1b

View file

@ -77,6 +77,11 @@ impl MoveGrabState {
} else { } else {
1.0 1.0
}; };
let alpha = if &seat.active_output() == output {
1.0
} else {
0.4
};
let cursor_at = seat.get_pointer().unwrap().current_location(); let cursor_at = seat.get_pointer().unwrap().current_location();
@ -115,7 +120,7 @@ impl MoveGrabState {
.as_local(), .as_local(),
self.indicator_thickness, self.indicator_thickness,
output_scale.x, output_scale.x,
1.0, alpha,
)) ))
.into(), .into(),
) )
@ -130,7 +135,7 @@ impl MoveGrabState {
(render_location - self.window.geometry().loc) (render_location - self.window.geometry().loc)
.to_physical_precise_round(output_scale), .to_physical_precise_round(output_scale),
output_scale, output_scale,
1.0, alpha,
); );
self.stacking_indicator self.stacking_indicator