Cqoicebordel / webslice-plasmoid

Add a slice of web on your desktop. https://www.pling.com/p/998902/
http://www.cqoicebordel.net/webslice-plasmoid/
GNU Affero General Public License v3.0
31 stars 12 forks source link

Transparency option only worked once #25

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello, I tried using the transparent option, the page did become entirely transparent However after a few refreshes the entire Plasma desktop (5.19.5) crashed. After the crash, the background stays white I have tried reseting some settings and reinstalling the plasmoid, didn't change.

What resoruces does Webslice load? khtml webkit? I will try clearing all the settings of those programs, but I have little experience figuring out what are being used.

I am trying to obtain the transparent background again to replicate the behavior so I can send a debug log.

Cqoicebordel commented 4 years ago

The plasmoid uses its own webkit, https://doc.qt.io/qt-5.15/qml-qtwebengine-webengineview.html, and not an external program. So changing settings there won't work.
One issue could be the GPU : handling transparency on the desktop is handled usually by the GPU, so if your GPU rendering crashed, it could display white instead of transparency. Depending on your GPU, and the drivers you use, that could be an issue.
Also, looking at the compositor could be interesting, as it's the component coordinating KDE and the GPU.
Finally, just to be sure, are you using the latest version of the plasmoid (2.0+ is enough) ? I won't do any support for the legacy plasmoid, as I can't test it anymore.

In any case, a debug log would be most welcome :)

ghost commented 3 years ago

Thank you. Yes I was using the latest 2.0 version at that time. In the meantime I reinstalled the operating system and stopped using kwin-lowlatency (wasa big hack anyway and started having issues), also plasma got a major update last week, who knows one of these fixed it. Now it does not longer crash.

A suggestion please if I might, Can you add an experimental background killer for webpages who have a background? As I have to hunt older out of date pages who have lack it, in order to be transparent. :)

Should be a simple CSS

Cqoicebordel commented 3 years ago

It seems I missed your comment. Sorry.

The background killer is a good idea, but I'm not sure if it's a wise idea : it won't be a simple CSS, as each page would have its own way to do a background. Doing the right CSS might be a never ending losing battle. But I'll think about it some more :)

In any case, you can already inject the CSS you want to your page by adding your own JS

const style = document.createElement('style');
style.textContent = "YOUR STYLE HERE";
document.head.append(style);