diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-04 08:01:50 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-04 08:01:50 +0400 |
| commit | acf3016bce426dd45bbc2c299373a3cfd6a7eba4 (patch) | |
| tree | 6b8cee6053a43f9c46bcedddda39d2b1ad733db4 | |
| parent | b54e1522ff47001763aed97158ed7da202706fd7 (diff) | |
| download | niri-acf3016bce426dd45bbc2c299373a3cfd6a7eba4.tar.gz niri-acf3016bce426dd45bbc2c299373a3cfd6a7eba4.tar.bz2 niri-acf3016bce426dd45bbc2c299373a3cfd6a7eba4.zip | |
tty: Store surface name
| -rw-r--r-- | src/backend/tty.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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, }; |
