mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-18 22:26:12 +01:00
Start layout transaction in set_location
Prevents windows from being in the wrong spot if it's location was set relative to another output and that output's scale changes
This commit is contained in:
parent
e1617845e1
commit
f3d0653e9a
1 changed files with 4 additions and 0 deletions
|
@ -1121,6 +1121,9 @@ impl output_service_server::OutputService for OutputService {
|
|||
if let Some(y) = y {
|
||||
loc.y = y;
|
||||
}
|
||||
|
||||
state.capture_snapshots_on_output(&output, []);
|
||||
|
||||
state.pinnacle.change_output_state(
|
||||
&mut state.backend,
|
||||
&output,
|
||||
|
@ -1130,6 +1133,7 @@ impl output_service_server::OutputService for OutputService {
|
|||
Some(loc),
|
||||
);
|
||||
debug!("Mapping output {} to {loc:?}", output.name());
|
||||
state.pinnacle.begin_layout_transaction(&output);
|
||||
state.pinnacle.request_layout(&output);
|
||||
state
|
||||
.pinnacle
|
||||
|
|
Loading…
Reference in a new issue