feat(desktop-wake): add wecom_search profile for SearchResultWindow2 (1.2.6)
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 27s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-02 11:59:49 +08:00
parent 6d3c353967
commit c75eaa701b
8 changed files with 90 additions and 7 deletions

View File

@@ -24,8 +24,9 @@ StrategyFn = Callable[[int, Profile], Tuple[str, str]]
def _strategy_activate(hwnd: int, profile: Profile) -> Tuple[str, str]:
activate_hwnd(hwnd, maximize=True)
return "foreground+maximize", "ok"
maximize = bool(getattr(profile, "activate_maximize", True))
activate_hwnd(hwnd, maximize=maximize)
return ("foreground+maximize" if maximize else "foreground"), "ok"
def _strategy_wm_getobject(hwnd: int, _profile: Profile) -> Tuple[str, str]: