xwayland: store and restore primary output

This commit is contained in:
Victoria Brekenfeld 2025-04-09 19:04:45 +02:00 committed by Victoria Brekenfeld
parent 7472351de0
commit aeed8f256f
3 changed files with 43 additions and 1 deletions

View file

@ -382,7 +382,10 @@ impl BackendData {
// Update layout for changes in resolution, scale, orientation
shell.workspaces.recalculate();
loop_handle.insert_idle(|state| state.common.update_xwayland_scale());
loop_handle.insert_idle(move |state| {
state.common.update_xwayland_scale();
state.common.update_xwayland_primary_output();
});
Ok(())
}