DiscordOverlayLinux icon indicating copy to clipboard operation
DiscordOverlayLinux copied to clipboard

Raise error when desktop transparancy is disabled

Open Elektordi opened this issue 5 years ago • 2 comments

Hello,

Just tried your script on Lightdm (XFCE on Ubuntu 18.04) but when transparency (also called "compositing" sometimes) is disabled you just get a fullscreen black area and no way to quit it. I had to kill the script from another tty...

If composing is disabled, the app should fail to run with an error message.

Thanks!

Elektordi avatar May 04 '20 20:05 Elektordi

Unfortunately I'm not aware of any way to test for this before hand without pulling in all of Xlib. Next best I can offer is to limit the default size of the window and hope the user notices

trigg avatar May 04 '20 20:05 trigg

Technically qt5-x11extras has QX11Extras which in turn has 'isCompositingManagerRunning'

But of the versions I've tested this particular function is missing.

trigg avatar May 07 '20 17:05 trigg