gardesk/tarmac / e9eabd1

Browse files

Track AXSheet/AXSystemDialog/AXSystemFloatingWindow subroles

is_manageable_window dropped windows with these subroles before they
could reach the auto-float path, so app-defined modals were either
silently ignored (sheets) or had nowhere to go. Accept them here and
let should_auto_float decide their fate.
Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
e9eabd12622e8dbc0b50fe753a159db46febce23
Parents
de9ba00
Tree
88047d1

1 changed file

StatusFile+-
M tarmac/src/platform/accessibility.rs 6 1
tarmac/src/platform/accessibility.rsmodified
@@ -255,7 +255,12 @@ pub fn is_manageable_window(element: &AXUIElement) -> bool {
255
 
255
 
256
     let dominated = matches!(
256
     let dominated = matches!(
257
         subrole.as_str(),
257
         subrole.as_str(),
258
-        "AXStandardWindow" | "AXDialog" | "AXFloatingWindow"
258
+        "AXStandardWindow"
259
+            | "AXDialog"
260
+            | "AXSystemDialog"
261
+            | "AXSheet"
262
+            | "AXFloatingWindow"
263
+            | "AXSystemFloatingWindow"
259
     );
264
     );
260
     if !dominated {
265
     if !dominated {
261
         tracing::trace!(role, subrole, title, "skipping non-standard subrole");
266
         tracing::trace!(role, subrole, title, "skipping non-standard subrole");