Use strongly-typed OverlayID instead of usize

This commit is contained in:
Aleksander
2024-10-17 20:56:45 +02:00
committed by galister
parent 022ae53aea
commit 9dbd1f994e
6 changed files with 39 additions and 34 deletions

View File

@@ -9,7 +9,7 @@ use smallvec::{smallvec, SmallVec};
use vulkano::image::view::ImageView;
use crate::{
backend::{input::InputState, task::TaskContainer},
backend::{input::InputState, overlay::OverlayID, task::TaskContainer},
config::{AStrMap, GeneralConfig},
config_io,
graphics::WlxGraphics,
@@ -160,7 +160,7 @@ impl AudioOutput {
pub struct ScreenMeta {
pub name: Arc<str>,
pub id: usize,
pub id: OverlayID,
pub native_handle: u32,
}