Skip to content

Commit

Permalink
fixing invalid active layout saving
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-axe authored and coffebar committed Jul 9, 2024
1 parent e6023e4 commit 94c5f89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hyprland_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ pub fn event(name: &str, data: &str, options: &Options) {
log::debug!("Layout {} is current", layout);
return;
}
*ACTIVE_LAYOUT.lock().unwrap() = index;
let addr_x = ACTIVE_WINDOW.lock().unwrap();
let addr: &str = Box::leak(addr_x.to_owned().into_boxed_str());

Expand Down

0 comments on commit 94c5f89

Please sign in to comment.