diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-08 17:06:46 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-08 17:06:46 +0400 |
| commit | e45dbb8ef67618bfbdb318eccb39fe06ad20dd00 (patch) | |
| tree | cffe8cf03380f06779c9f5501e5f00316ddca329 | |
| parent | 5c4b71a5a4be05966c6d3cb2e0709b0d3040e669 (diff) | |
| download | niri-e45dbb8ef67618bfbdb318eccb39fe06ad20dd00.tar.gz niri-e45dbb8ef67618bfbdb318eccb39fe06ad20dd00.tar.bz2 niri-e45dbb8ef67618bfbdb318eccb39fe06ad20dd00.zip | |
Pass through subpixel layout
| -rw-r--r-- | src/backend/tty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index e9d7a9cb..4373eebe 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -29,7 +29,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, Subpixel}; +use smithay::output::{Mode, Output, OutputModeSource, PhysicalProperties}; use smithay::reexports::calloop::timer::{TimeoutAction, Timer}; use smithay::reexports::calloop::{Dispatcher, LoopHandle, RegistrationToken}; use smithay::reexports::drm::control::{ @@ -718,7 +718,7 @@ impl Tty { output_name.clone(), PhysicalProperties { size: (physical_width as i32, physical_height as i32).into(), - subpixel: Subpixel::Unknown, + subpixel: connector.subpixel().into(), model, make, }, |
