state: Also arrange empty layer-map for scale changes
This commit is contained in:
parent
4dbaa58483
commit
fffae1491d
1 changed files with 9 additions and 5 deletions
14
src/state.rs
14
src/state.rs
|
|
@ -37,11 +37,14 @@ use smithay::{
|
||||||
ImportDma,
|
ImportDma,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
desktop::utils::{
|
desktop::{
|
||||||
send_dmabuf_feedback_surface_tree, send_frames_surface_tree,
|
layer_map_for_output,
|
||||||
surface_presentation_feedback_flags_from_states, surface_primary_scanout_output,
|
utils::{
|
||||||
take_presentation_feedback_surface_tree, update_surface_primary_scanout_output,
|
send_dmabuf_feedback_surface_tree, send_frames_surface_tree,
|
||||||
with_surfaces_surface_tree, OutputPresentationFeedback,
|
surface_presentation_feedback_flags_from_states, surface_primary_scanout_output,
|
||||||
|
take_presentation_feedback_surface_tree, update_surface_primary_scanout_output,
|
||||||
|
with_surfaces_surface_tree, OutputPresentationFeedback,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
input::{pointer::CursorImageStatus, Seat, SeatState},
|
input::{pointer::CursorImageStatus, Seat, SeatState},
|
||||||
output::{Mode as OutputMode, Output, Scale},
|
output::{Mode as OutputMode, Output, Scale},
|
||||||
|
|
@ -260,6 +263,7 @@ impl BackendData {
|
||||||
let location =
|
let location =
|
||||||
Some(final_config.position.into()).filter(|x| *x != output.current_location());
|
Some(final_config.position.into()).filter(|x| *x != output.current_location());
|
||||||
output.change_current_state(mode, transform, scale.map(Scale::Fractional), location);
|
output.change_current_state(mode, transform, scale.map(Scale::Fractional), location);
|
||||||
|
layer_map_for_output(output).arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
result
|
result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue