From adacd7a2ab666e6a4462ee07f74982c9aa18de39 Mon Sep 17 00:00:00 2001 From: chlorospingus Date: Fri, 25 Apr 2025 02:02:02 -0700 Subject: [PATCH] WE'RE FINALLY PUTTING SHIT ON THE SCREEN Attach wl_buffer to layer_surface and commit it --- src/layer_shell.rs | 3 +++ src/wl_registry.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layer_shell.rs b/src/layer_shell.rs index b697f7b..6954e62 100644 --- a/src/layer_shell.rs +++ b/src/layer_shell.rs @@ -55,6 +55,9 @@ impl WlClient { self.socket.write(&request)?; + self.wl_surface_attach()?; + self.wl_surface_commit()?; + Ok(()) } diff --git a/src/wl_registry.rs b/src/wl_registry.rs index 9a6027b..2affd81 100644 --- a/src/wl_registry.rs +++ b/src/wl_registry.rs @@ -25,7 +25,7 @@ impl WlClient { self.wl_shm_create_pool()?; self.wl_shm_pool_create_buffer(0, 200, 200)?; - self.wl_surface_attach()?; + // self.wl_surface_attach()?; // self.wl_surface_commit()?; Ok(())