From ef4b1d3d51e6a9b34985bc6471e04e6fdb1c08c9 Mon Sep 17 00:00:00 2001 From: Ottatop Date: Wed, 20 Dec 2023 19:54:34 -0600 Subject: [PATCH] Update workflow action Evidently I was using a version from 2020 for some reason --- .github/workflows/ldoc.yml | 2 +- src/layout.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ldoc.yml b/.github/workflows/ldoc.yml index e8bbc90c5..75343417f 100644 --- a/.github/workflows/ldoc.yml +++ b/.github/workflows/ldoc.yml @@ -31,7 +31,7 @@ jobs: repository: Ottatop/ldoc_gen path: ./ldoc_gen - name: Setup Lua - uses: leafo/gh-actions-lua@v8 + uses: leafo/gh-actions-lua@v10 with: luaVersion: 5.4 - name: Setup Lua Rocks diff --git a/src/layout.rs b/src/layout.rs index cbed4db1d..882b6811d 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -57,6 +57,11 @@ impl State { /// Compute tiled window locations and sizes, resize maximized and fullscreen windows correctly, /// and send configures and that cool stuff. pub fn update_windows(&mut self, output: &Output) { + // HACK: With the blocker implementation, if I opened up a bunch of windows quickly they + // | would freeze up. + // | So instead of being smart and figuring something out I instead decided "f*** it" + // | and stuck a static here to detect if update_windows was called again, causing + // | previous blockers to be unblocked. static UPDATE_COUNT: AtomicU32 = AtomicU32::new(0); UPDATE_COUNT.fetch_add(1, std::sync::atomic::Ordering::Relaxed); let current_update_count = UPDATE_COUNT.load(std::sync::atomic::Ordering::Relaxed);