gardesk/tarmac / 853f839

Browse files

state: rustfmt

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
853f839076a482956cfda1d90675c56f5d9b47bb
Parents
a1995e6
Tree
d086cb6

1 changed file

StatusFile+-
M tarmac/src/core/state.rs 4 10
tarmac/src/core/state.rsmodified
@@ -335,8 +335,8 @@ impl WmState {
335335
         for w in &windows {
336336
             let cx = w.x + w.width / 2.0;
337337
             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);
340340
             self.focused_monitor = mi;
341341
             self.add_window_to_active(
342342
                 &w.id,
@@ -1344,9 +1344,7 @@ impl WmState {
13441344
                     crate::platform::workspace_observer::frontmost_regular_application_pid()
13451345
                         == Some(pid)
13461346
                 });
1347
-                if !app_already_frontmost
1348
-                    && let Some(pid) = target_pid
1349
-                {
1347
+                if !app_already_frontmost && let Some(pid) = target_pid {
13501348
                     let app_ref =
13511349
                         unsafe { objc2_application_services::AXUIElement::new_application(pid) };
13521350
                     let frontmost_key =
@@ -3398,11 +3396,7 @@ fn should_auto_float(subrole: &str, ax_ref: &AXUIElement) -> bool {
33983396
 
33993397
     if matches!(
34003398
         subrole,
3401
-        "AXDialog"
3402
-            | "AXSystemDialog"
3403
-            | "AXSheet"
3404
-            | "AXFloatingWindow"
3405
-            | "AXSystemFloatingWindow"
3399
+        "AXDialog" | "AXSystemDialog" | "AXSheet" | "AXFloatingWindow" | "AXSystemFloatingWindow"
34063400
     ) {
34073401
         return true;
34083402
     }