Click the live preview to bring the VM window to the front

Open
#55 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
electron, react, typescript
Domain
desktop

Research direction

The preview is in the Summary tab, and the work is in the Electron main process, which knows the QEMU pid. Read how the QEMU process is launched and where its window handle could be found, then decide between a native Windows call and asking QEMU to raise itself, since the issue leaves that open. Done means clicking the preview brings the VM window to the foreground on Windows, or the preview no longer looks clickable if that proves unreliable.

Written by the indexing model from the issue text.

Description

enhancement ui

Split out of #8. The preview itself is in the Summary tab now, the other half of #8 is clicking it to bring the VM's own window to the front.

QEMU's window belongs to another process, and Windows only lets the foreground process hand focus to another window (SetForegroundWindow rules), so this needs either a small native call from the main process (AllowSetForegroundWindow for the QEMU pid, then SetForegroundWindow on its top-level window) or asking QEMU to raise itself. Ideally without adding a native module to the build.

If it can't be done reliably, the preview should at least not look clickable.

Dominant language
TypeScript
Stars
3
Forks
0
Avg merge
2m
Merged PRs (30d)
59

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/Virtual-Machine-Manager

All issues in A21-devs/Virtual-Machine-Manager

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.