Skip to content

Commit

Permalink
chore: Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover committed Aug 6, 2023
1 parent 72e323a commit 261a81a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub fn special_only_has_one_visible_window() -> bool {

for workspace in Workspaces::get().unwrap() {
if workspace.id == id {
return workspace.windows == 1
return workspace.windows == 1;
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ fn main() -> hyprland::Result<()> {
let in_special_workspace: Arc<Mutex<bool>> = Arc::new(Mutex::new(is_special()));

// Initialize with dim so the user sees something, but only if the user wants dim
if is_special() && (ignore_entering_special || no_dim_when_only) && special_only_has_one_visible_window() {
if is_special()
&& (ignore_entering_special || no_dim_when_only)
&& special_only_has_one_visible_window()
{
Keyword::set("decoration:dim_strength", 0)?;
Keyword::set("decoration:dim_inactive", "yes")?;
} else {
Expand Down
4 changes: 2 additions & 2 deletions tests/release.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use assert_cmd::Command;
use rustympkglib::pkgdata::PkgData;
use std::fs;
use serde::Deserialize;
use assert_cmd::Command;
use std::fs;

#[derive(Debug, Deserialize)]
struct Config {
Expand Down

0 comments on commit 261a81a

Please sign in to comment.