Skip to content

React to changing winId? #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
almarklein opened this issue Mar 12, 2025 · 0 comments
Open

React to changing winId? #62

almarklein opened this issue Mar 12, 2025 · 0 comments

Comments

@almarklein
Copy link
Member

This is mostly an issue with Qt, but possibly also other backends. Until now, we've assumed that the window-id does not change after it is obtained.

What we do know:

  • The Qt docs say that it can change, but they don't state when.
  • Calling winId() on a Qt widget, turns it into a native widget (WA_NativeWindow).
  • This has some nasty side-effects, e.g. a known issue is that to move it in a dock, you have to click it before you can drag.
  • Other odd behavior has been observed (on Windows) when winId() is called, see [Qt] multiple window/docking support #55

Some questions:

  • Under what circumstances can the winow-id change?
  • Does this also apply to other gui backends?
  • We use the window-id to create a surface object. Does the changed window-id affect that surface object, or can we just keep using it?
  • Do the observed issues when winId is called relate to us not updating to new winid?
  • Should we react to a changing window-id?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant