onli / simdock

small dock with pseudo-transparency and good window handling
GNU General Public License v2.0
34 stars 3 forks source link

Black box around the icons #6

Open probonopd opened 6 years ago

probonopd commented 6 years ago

On neon-devedition-gitunstable-20180826-0812-amd64.iso with Simdock-5fc553b-x86_64.AppImage I get a black box around the icons:

(GIF screen recording made with the Peek AppImage)

onli commented 4 years ago

Also some context here: There is no reason for this not to work. Simdock does pseudo transparency, it takes the X bitmap it covers. That predates my fork, though I remember modifying it at some point. Relevant code is in https://github.com/onli/simdock/blob/383e9c74c722812e579e3fd345ab9f7981ddc759/src/background.cc#L23

If this is black, that means KDE does not set its background to X, at least not in a way that wnck_screen_get_background_pixmap can detect (and also, the fallback dc.SetBackground(*wxTRANSPARENT_BRUSH); is either not triggered or does not work, the latter is more likely). It's absurd to be confident about anything in that environment, but as much as possible I'm confident that this is either a bug in KDE or wnck, possibly more of an incompatibility. KDE just does not paint the desktop background that way, that was already in issue in izulu

I won't be able to fix this, the "help wanted" label is really meant that way. This bug will only be fixed if someone comes around and shows a way how to get the KDE background image in wxwidgets/wnck/something else we can add to simdock.

onli commented 11 months ago

The black box might now be fixed, with the recent changes for GTK3 to the transparency (still pseudo transparency though, not composited), or with the new compositing mode it should definitely be fixed!