[konqueror] [Bug 500173] Spurious windows while generating HTML preview in Wayland

"Stefano Crocco" <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=500173

--- Comment #8 from Stefano Crocco <[email protected]> ---
(In reply to Konstantin Ivanov from comment #6)
> Here's an update and a possible workaround: I've posted the story about this
> issue on another forum (in Russian,
> https://www.linux.org.ru/forum/development/17886472), and a good Samaritan
> there suggested that it's possible to patch kio-extras to utilize Qt
> Platform Abstaraction forcing off-screen rendering, and he even made a
> patch. It's just one line in thumbnail.cpp before QApplication app
> declaration:
> 
>     qputenv("QT_QPA_PLATFORM", "offscreen");
> 
> IMHO it's a wise choice anyway because no thumnailer plugin should be
> allowed to draw on the screen. I've tested it, and it works for me (just
> /lib/qt6/plugins/kio/thumbnail.so needs to be recompiled).
> I'm attaching a patch to this report because I'm not sure how to proceed
> from here. Is this a good solution? Would someone like to make a merge
> request? I've never done it but I can try if you approve of it.

Thanks for the suggestion. In my opinion, it's worth trying to do a merge
request for kio-extras. As for "approving" your suggestion, I think it's better
leaving it to the kio-extras people because they know the code better than I
do.

In the meanwhile, I tried reproducing the bug in virtual machines with older Qt
versions: I couldn't reproduce it with a version of KDE Neon using Qt 6.8.0 but
it happened with a version using Qt 6.8.2, so I think it's something which
happened between these two releases. Unfortunately, I think that the KDE
frameworks version were different between the two cases, so I'm going to try
writing a minimal Qt-only program showing this issue. I don't think I'll have
time to do that before the week-end, however.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.