state: rustfmt
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
853f839076a482956cfda1d90675c56f5d9b47bb- Parents
-
a1995e6 - Tree
d086cb6
853f839
853f839076a482956cfda1d90675c56f5d9b47bba1995e6
d086cb6| Status | File | + | - |
|---|---|---|---|
| M |
tarmac/src/core/state.rs
|
4 | 10 |
tarmac/src/core/state.rsmodified@@ -335,8 +335,8 @@ impl WmState { | ||
| 335 | 335 | for w in &windows { |
| 336 | 336 | let cx = w.x + w.width / 2.0; |
| 337 | 337 | let cy = w.y + w.height / 2.0; |
| 338 | - let mi = super::monitor::index_at_point(&self.monitors, cx, cy) | |
| 339 | - .unwrap_or(original_focused); | |
| 338 | + let mi = | |
| 339 | + super::monitor::index_at_point(&self.monitors, cx, cy).unwrap_or(original_focused); | |
| 340 | 340 | self.focused_monitor = mi; |
| 341 | 341 | self.add_window_to_active( |
| 342 | 342 | &w.id, |
@@ -1344,9 +1344,7 @@ impl WmState { | ||
| 1344 | 1344 | crate::platform::workspace_observer::frontmost_regular_application_pid() |
| 1345 | 1345 | == Some(pid) |
| 1346 | 1346 | }); |
| 1347 | - if !app_already_frontmost | |
| 1348 | - && let Some(pid) = target_pid | |
| 1349 | - { | |
| 1347 | + if !app_already_frontmost && let Some(pid) = target_pid { | |
| 1350 | 1348 | let app_ref = |
| 1351 | 1349 | unsafe { objc2_application_services::AXUIElement::new_application(pid) }; |
| 1352 | 1350 | let frontmost_key = |
@@ -3398,11 +3396,7 @@ fn should_auto_float(subrole: &str, ax_ref: &AXUIElement) -> bool { | ||
| 3398 | 3396 | |
| 3399 | 3397 | if matches!( |
| 3400 | 3398 | subrole, |
| 3401 | - "AXDialog" | |
| 3402 | - | "AXSystemDialog" | |
| 3403 | - | "AXSheet" | |
| 3404 | - | "AXFloatingWindow" | |
| 3405 | - | "AXSystemFloatingWindow" | |
| 3399 | + "AXDialog" | "AXSystemDialog" | "AXSheet" | "AXFloatingWindow" | "AXSystemFloatingWindow" | |
| 3406 | 3400 | ) { |
| 3407 | 3401 | return true; |
| 3408 | 3402 | } |