mirror of https://github.com/wayvr-org/wayvr.git
fix upright screens while attempting to not break COSMIC
This commit is contained in:
parent
c44a998c67
commit
938948ae44
|
|
@ -806,9 +806,16 @@ pub fn create_screens_wayland(wl: &mut WlxClientAlias, app: &mut AppState) -> Sc
|
|||
let logical_size = vec2(output.logical_size.0 as f32, output.logical_size.1 as f32);
|
||||
let transform = output.transform.into();
|
||||
let interaction = create_screen_interaction(logical_pos, logical_size, transform);
|
||||
|
||||
let logical_size_landscape = if output.size.0 > output.size.1 {
|
||||
output.logical_size
|
||||
} else {
|
||||
(output.logical_size.1, output.logical_size.0)
|
||||
};
|
||||
|
||||
let state = create_screen_state(
|
||||
output.name.clone(),
|
||||
output.logical_size,
|
||||
logical_size_landscape,
|
||||
transform,
|
||||
&app.session,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue