diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 09:42:31 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-16 09:46:02 +0400 |
| commit | 6ca3b6ddb564d34e50881faefec6e06e11b9fcb9 (patch) | |
| tree | 77b1edfd11712baa8b8ccf278b3b601ca52e1e1c /src/backend/tty.rs | |
| parent | fc5a080ca5ab1859ee2a57e00f1a365ef9a783a2 (diff) | |
| download | niri-6ca3b6ddb564d34e50881faefec6e06e11b9fcb9.tar.gz niri-6ca3b6ddb564d34e50881faefec6e06e11b9fcb9.tar.bz2 niri-6ca3b6ddb564d34e50881faefec6e06e11b9fcb9.zip | |
Move output scale setting into niri
Diffstat (limited to 'src/backend/tty.rs')
| -rw-r--r-- | src/backend/tty.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 4d2afef7..f8044a9c 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -28,7 +28,7 @@ use smithay::backend::session::libseat::LibSeatSession; use smithay::backend::session::{Event as SessionEvent, Session}; use smithay::backend::udev::{self, UdevBackend, UdevEvent}; use smithay::desktop::utils::OutputPresentationFeedback; -use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties, Scale, Subpixel}; +use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties, Subpixel}; use smithay::reexports::calloop::timer::{TimeoutAction, Timer}; use smithay::reexports::calloop::{Dispatcher, LoopHandle, RegistrationToken}; use smithay::reexports::drm::control::{ @@ -712,8 +712,7 @@ impl Tty { ); let wl_mode = Mode::from(*mode); - let scale = config.scale.clamp(1., 10.).ceil() as i32; - output.change_current_state(Some(wl_mode), None, Some(Scale::Integer(scale)), None); + output.change_current_state(Some(wl_mode), None, None, None); output.set_preferred(wl_mode); output |
