aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-08 17:06:46 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-08 17:06:46 +0400
commite45dbb8ef67618bfbdb318eccb39fe06ad20dd00 (patch)
treecffe8cf03380f06779c9f5501e5f00316ddca329 /src
parent5c4b71a5a4be05966c6d3cb2e0709b0d3040e669 (diff)
downloadniri-e45dbb8ef67618bfbdb318eccb39fe06ad20dd00.tar.gz
niri-e45dbb8ef67618bfbdb318eccb39fe06ad20dd00.tar.bz2
niri-e45dbb8ef67618bfbdb318eccb39fe06ad20dd00.zip
Pass through subpixel layout
Diffstat (limited to 'src')
-rw-r--r--src/backend/tty.rs4
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,
},