fix: restore window and keyboard interactions with queue

This commit is contained in:
2026-10-18 01:51:51 +02:00
parent afb0c30e09
commit 07243f0ed7
6 changed files with 279 additions and 39 deletions
+19
View File
@@ -285,6 +285,25 @@ def check_cli_instances(root, app, fixtures):
and state["position"] > 0 and state["hasVideo"] for state in states.values()),
"cold default CLI opens one actual player window")
first_pid = next(iter(first))
opened = input_request(first_pid, 1, lambda state: state["showsQueue"]
and state["window"].get("videoOwnsMouse") is True
and abs(state["window"]["videoWidth"] - first[first_pid]["window"]["videoWidth"]) < 1,
"queue preserves video size and mouse target", action="queue", visible=True)
window = opened[first_pid]["window"]
if (not window["resizable"] or window["aspectWidth"] != 0 or window["aspectHeight"] != 0
or window["minWidth"] > 660 or window["minHeight"] > 300
or window["maxWidth"] <= window["width"] + 80
or window["maxHeight"] <= window["height"] + 80
or not window["controlsOwnMouse"] or not window["sidebarOwnsMouse"]
or not window["edgesAvoidDragSurface"] or window["surfaceMovesOnMouseDown"]):
raise RuntimeError(f"queue must preserve native resize limits and independent mouse targets: {window}")
input_request(first_pid, 1, lambda state: not state["showsQueue"]
and abs(state["window"]["videoWidth"] - first[first_pid]["window"]["videoWidth"]) < 1,
"queue closes without changing video size", action="queue", visible=False)
print(f"PASS native queue window: independent video/controls/sidebar/edge targets, "
f"resizable min {window['minWidth']}x{window['minHeight']}, unconstrained maxima and cleared aspect")
if os.environ.get("TEREBI_CHECK_WINDOW_ONLY") == "1":
return
if settings(first[first_pid]) != (False, False, True) or config.parent.exists():
raise RuntimeError(f"missing config must use defaults without creating a file: {first}")
invoke([])