Created attachment 8740 Transparent miniature view on Workspace switcher In some cases the miniature view of windows in the workspace switcher is transparent
Created attachment 8741 Correct miniature view after reloading the panel Reloading the panel with xfce4-panel -r fixes the issue
For me this always happens after booting, someone else on the mailinglist reported for them it happens after resuming from suspend https://mail.xfce.org/pipermail/xfce/2019-July/036491.html
I can trigger this glitch by assigning the 'primary' status to a different monitor via xfce4-display-settings. Other display related changes may work too, but I did not test them. Furthermore, this only happens with certain themes like Adwaita or Arc while Greybird and Numix are not affected.
/* Workspace switcher provided by libwnck */ wnck-pager:selected { background-color: shade(#398ee7, 0.88); } This CSS code from the Greybird theme is what prevents the glitch from occurring.
I have to add that this only applies to the currently selected workspace, so I assume that a general background color needs to be specified for wnck-pager.
@Theo: If you read the pager code closely you'll see that the theme code you mention shouldn't have anything to do with the problem. Furthermore it's possible you're seeing a bug different from the OP's, but I'll test. To sum things up: The panel sets the background color of plugin buttons to "transparent" by default, because that's how the panel's color can "shine through" on them. The pager widget tries to get the panel's background color to set it for the widget (apparently it does custom cairo drawing and therefore relies on the background color of the widget): https://git.xfce.org/xfce/xfce4-panel/tree/plugins/pager/pager.c#n298 So I would guess the Marcel is seeing a race condition where either 1) the "style-updated" signal fired too early (leading to unsuccessful querying the panel's color values, hence the widget remains transparent or even black) 2) or the "style-updated" signal didn't fire at all under some circumstances.
Created attachment 8770 Patch setting the bg color when widget is re-created The two issues may actually be related to the same root cause: Currently the background css is only injected on the style-updated signal, which doesn't fire when the screen layout is changed. As Theo correctly observed, changing the screen layout (e.g. by changing the panel position through the "primary" setting) the pager widget gets re-created from scratch, so the background css is missing at that point. The attached patch should fix the problem for both of you.
I tested the patch and can confirm that it fixes the bug.
Fixed with the patch here too
Simon Steinbeiss referenced this bugreport in commit 6f0fc6628ef721521025e34c543a6e865ad01a9e pager: Ensure bg color is set correctly (Bug #15690) https://git.xfce.org/xfce/xfce4-panel/commit?id=6f0fc6628ef721521025e34c543a6e865ad01a9e
Thanks for testing!
*** Bug 15895 has been marked as a duplicate of this bug. ***