From acf3016bce426dd45bbc2c299373a3cfd6a7eba4 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 4 Sep 2023 08:01:50 +0400 Subject: tty: Store surface name --- src/backend/tty.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/backend') diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 39b480aa..27f8d8ad 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -72,6 +72,7 @@ struct TtyOutputState { } struct Surface { + name: String, compositor: GbmDrmCompositor, dmabuf_feedback: DmabufFeedback, } @@ -470,7 +471,7 @@ impl Tty { .unwrap_or_else(|| ("Unknown".into(), "Unknown".into())); let output = Output::new( - output_name, + output_name.clone(), PhysicalProperties { size: (physical_width as i32, physical_height as i32).into(), subpixel: Subpixel::Unknown, @@ -520,6 +521,7 @@ impl Tty { .unwrap(); let surface = Surface { + name: output_name, compositor, dmabuf_feedback, }; -- cgit