git.lucas.co / cce-notifier
notification daemon
git clone https://git.lucas.co/cce-notifier.git

commitd626e98ff49fb91ce675100ab4e1be31a1d0f702
parent67b1ff21f4
authorLucas Galante <[email protected]>
date2026-06-13 21:29
Update notification daemon main entry point

 src/main.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index ec2cf31..711a7e2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -718,11 +718,11 @@ impl WindowHandler for AppState {
         _serial: u32,
     ) {
         let (w, h) = configure.new_size;
-        if let (Some(w), Some(h)) = (w, h) {
-            let width = w.get();
-            let height = h.get();
-            if let Some(state) = &mut self.state {
-                state.configured = true;
+        if let Some(state) = &mut self.state {
+            state.configured = true;
+            if let (Some(w), Some(h)) = (w, h) {
+                let width = w.get();
+                let height = h.get();
                 let pw = (width as f64 * state.scale_factor) as u32;
                 let ph = (height as f64 * state.scale_factor) as u32;
                 state.resize(pw, ph);