This commit is contained in:
2026-09-09 23:40:21 +02:00
parent 3ad0b59d8c
commit 66c2d49ffb
6 changed files with 23 additions and 404 deletions
+2 -10
View File
@@ -46,8 +46,7 @@ use wayland_protocols::wp::viewporter::client::{
};
use wayland_protocols_wlr::layer_shell::v1::client::zwlr_layer_shell_v1::ZwlrLayerShellV1;
use crate::capture::{Live, Tile};
use crate::config::AltTabMode;
use crate::capture::Tile;
use crate::overlay;
use crate::shm;
use crate::target::Target;
@@ -55,18 +54,14 @@ use crate::text;
use crate::theme::{Layout, Theme};
/// What the caller decided before any of this started: the look, and how much
/// live capture to do. Passed as one value because `theme`, `live`, `fps` and
/// `scale` all arrive together and two of them are bare integers.
/// live capture to do. `live` is always on for the alt-tab switcher mode.
pub struct Settings {
pub theme: Theme,
pub live: Live,
pub fps: u32,
/// Integer scale of the display the overlay renders on, and its name, so
/// the overlay maps there rather than wherever the compositor would put it.
pub scale: i32,
pub output: String,
#[allow(dead_code)]
pub alt_tab: AltTabMode,
}
pub struct App {
@@ -88,7 +83,6 @@ pub struct App {
pub(crate) theme: Theme,
pub(crate) layout: Layout,
pub(crate) live: Live,
pub(crate) fps: u32,
pub(crate) scale: i32,
pub(crate) sel: usize,
@@ -182,7 +176,6 @@ impl App {
) -> Result<Self, Box<dyn Error>> {
let Settings {
theme,
live,
fps,
scale,
output,
@@ -206,7 +199,6 @@ impl App {
tiles: targets.into_iter().map(Tile::new).collect(),
theme,
layout,
live,
fps,
scale,
sel,