Skip to content

Don't show an image in the remote view for unexposed QtQuick windows#1113

Merged
Waqar144 merged 2 commits into
masterfrom
work/josh/minimize-qtquick-fix
Mar 6, 2026
Merged

Don't show an image in the remote view for unexposed QtQuick windows#1113
Waqar144 merged 2 commits into
masterfrom
work/josh/minimize-qtquick-fix

Conversation

@redstrate
Copy link
Copy Markdown
Contributor

The window isn't rendering when it isn't exposed, and that also means
interacting with the remote view looks frozen/buggy (AKA not a great
user experience!)

We now listen to the window's expose events, and clear the image to
prevent interaction. I didn't have to modify the unavailable placeholder
text either, because it already mentions that the window being minimized
is a reason why the remote view is unavailable!

This is implemented in the AbstractScreenGrabber class, so it works for
all pre-existing screen grabbers and any future ones automatically.


I also implemented another change to prevent users from panning an unavailable remote view.

@redstrate redstrate self-assigned this Feb 10, 2026
@redstrate redstrate force-pushed the work/josh/minimize-qtquick-fix branch from 278a5fe to 89be04a Compare February 10, 2026 16:21
@iamsergio
Copy link
Copy Markdown
Contributor

are tests passing for you locally ?

The window isn't rendering when it isn't exposed, and that also means
interacting with the remote view looks frozen/buggy (AKA not a great
user experience!)

We now listen to the window's expose events, and clear the image to
prevent interaction. I didn't have to modify the unavailable placeholder
text either, because it already mentions that the window being minimized
is a reason why the remote view is unavailable!

This is implemented in the AbstractScreenGrabber class, so it works for
all pre-existing screen grabbers and any future ones automatically.
Even if the remote view was unavailable for whatever reason, it was
possible to pan it. This results in a *very* confused user (me, usually)
when the remote view comes back online.
@redstrate redstrate force-pushed the work/josh/minimize-qtquick-fix branch from 89be04a to c066091 Compare February 11, 2026 12:11
@redstrate
Copy link
Copy Markdown
Contributor Author

are tests passing for you locally ?

No I think the CI is correct, I was missing a null check for m_window here.

@Waqar144 Waqar144 merged commit 3e91477 into master Mar 6, 2026
52 of 53 checks passed
@Waqar144 Waqar144 deleted the work/josh/minimize-qtquick-fix branch March 6, 2026 17:46
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

Successfully merging this pull request may close these issues.

3 participants