Skip to content

Commit

Permalink
Update workflow action
Browse files Browse the repository at this point in the history
Evidently I was using a version from 2020 for some reason
  • Loading branch information
Ottatop committed Dec 21, 2023
1 parent 24034e7 commit ef4b1d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ldoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef4b1d3

Please sign in to comment.