From 02323a36f4cc459f80807eb1832c985367295a2a Mon Sep 17 00:00:00 2001 From: xunuwu Date: Thu, 19 Jun 2025 01:19:50 +0200 Subject: [PATCH] remove commented code --- src/main.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0b571c2..68d7cf3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,17 +67,6 @@ fn main() -> Result<()> { layer_surface_data.clone(), ); layer_surface.set_size(img.width(), img.height()); - // layer_surface - // .set_anchor(zwlr_layer_surface_v1::Anchor::Top | zwlr_layer_surface_v1::Anchor::Left); - - // let screen_height = 1080; - // let screen_width = 1920; - // layer_surface.set_margin( - // screen_height / 2 - img.width() as i32 / 2, - // 0, - // 0, - // screen_width / 2 - img.height() as i32 / 2, - // ); layer_surface.set_exclusive_zone(-1); // ignore other exclusive zones surface.commit(); @@ -85,7 +74,6 @@ fn main() -> Result<()> { while !layer_surface_data.read().unwrap().0 { queue.blocking_dispatch(&mut state)?; } - // let (_, width, height) = *layer_surface_data.read().unwrap(); let mut memfile = { let memfile = memfd::MemfdOptions::default() @@ -119,9 +107,6 @@ fn main() -> Result<()> { surface.attach(Some(&buffer), 0, 0); surface.commit(); - // layer_surface.set_margin(10, 10, 10, 10); - // surface.commit(); - loop { debug!("dispatched!"); queue.blocking_dispatch(&mut state)?;