mirror of
https://github.com/CloudNebulaProject/wayray.git
synced 2026-04-10 13:10:41 +00:00
Fix review findings: output transform, resize TODO, import aliases
- Change Transform::Flipped180 to Transform::Normal for virtual output - Add TODO comment on resize handler for future output mode update - Rename misleading JsonPointer* import aliases to *Trait
This commit is contained in:
parent
ed2f9be8e6
commit
5fee1a9b40
2 changed files with 6 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ fn main() -> Result<()> {
|
|||
size: window_size,
|
||||
refresh: 60_000, // 60 Hz in millihertz
|
||||
};
|
||||
output.change_current_state(Some(mode), Some(Transform::Flipped180), None, None);
|
||||
output.change_current_state(Some(mode), Some(Transform::Normal), None, None);
|
||||
output.set_preferred(mode);
|
||||
|
||||
// Create the global output for Wayland clients to bind to.
|
||||
|
|
@ -123,6 +123,9 @@ fn main() -> Result<()> {
|
|||
loop_handle
|
||||
.insert_source(winit_event_loop, move |event, _, data| match event {
|
||||
WinitEvent::Resized { size, scale_factor } => {
|
||||
// TODO: Update output mode, damage tracker, and space mapping
|
||||
// to reflect the new window size. Currently the compositor
|
||||
// continues rendering at the original size after resize.
|
||||
info!(?size, scale_factor, "window resized");
|
||||
}
|
||||
WinitEvent::Focus(focused) => {
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ use smithay::{
|
|||
backend::input::{
|
||||
AbsolutePositionEvent, Axis, AxisSource, ButtonState, Event as InputEventTrait,
|
||||
InputBackend, InputEvent, KeyboardKeyEvent,
|
||||
PointerAxisEvent as JsonPointerAxisEvent,
|
||||
PointerButtonEvent as JsonPointerButtonEvent,
|
||||
PointerAxisEvent as PointerAxisEventTrait,
|
||||
PointerButtonEvent as PointerButtonEventTrait,
|
||||
},
|
||||
desktop::{Space, WindowSurfaceType},
|
||||
input::{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue