refactor(wm): add window handling sync/async enum

This commit adds a dedicated WindowHandlingBehaviour enum with Sync and
Async variants, and reverts a change to the render fn in window.rs to
use move_window instead of position_window if the
WindowHandlingBehaviour variant is Sync.
This commit is contained in:
LGUG2Z
2025-04-24 17:34:33 -07:00
parent f3f2098451
commit bdbd665b21
6 changed files with 64 additions and 21 deletions

View File

@@ -217,10 +217,6 @@
}
]
},
"async_window_handling": {
"description": "Use asynchronous window handling to avoid blocking the main thread when a window is not responding (default: false)",
"type": "boolean"
},
"bar_configurations": {
"description": "Komorebi status bar configuration files for multiple instances on different monitors",
"type": "array",
@@ -4619,6 +4615,14 @@
}
]
},
"window_handling_behaviour": {
"description": "Which Windows API behaviour to use when manipulating windows (default: Sync)",
"type": "string",
"enum": [
"Sync",
"Async"
]
},
"window_hiding_behaviour": {
"description": "Which Windows signal to use when hiding windows (default: Cloak)",
"oneOf": [