Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Weird double shadow on some GTK3 apps #189
Comments
tritonas00
commented
Apr 15, 2014
|
same here (openbox + Archlinux) |
ledti
commented
Apr 15, 2014
tritonas00
commented
Apr 15, 2014
|
yes downgrading fixes the issue. |
|
It probably is the expected behavior when GTK+ tries to draw the shadow itself, seemingly on an ARGB window, and you may simply need to |
hexchain
commented
Apr 16, 2014
|
|
memeplex
commented
Apr 16, 2014
|
Thanks for all the info. Unfortunately it's no fun to test GTK+ 3.12 here. All my working systems are Gentoo, and looks like GTK+ 3.12.1 is not in Portage tree or gnome-next overlay. It would be easy to build GTK+ itself, but GNOME packages may need to be updated as I upgrade to GTK+ 3.12... By the way, As far as I know xcompmgr has bugs handling shadow on ARGB windows, that sometimes those shadows are not drawn, which probably is the reason you see it's working. |
hexchain
commented
Apr 17, 2014
|
Thank you, |
memeplex
commented
Apr 17, 2014
|
@richardgv |
|
Combine them, like |
memeplex
commented
Apr 17, 2014
|
@richardgv take a look at this : GTK+ uses this property ( |
memeplex
commented
Apr 17, 2014
|
Knowing that csd will be part of our lives in the dark times coming, this could be done a default behavior or a specific cli option added to cope with this case. |
tritonas00
commented
Apr 17, 2014
|
indeed, excluding _GTK_FRAME_EXTENTS@:c fixes the issue. thanks! |
memeplex
commented
Apr 17, 2014
|
There is one more quirk. If you have fading enabled for window opening/close these csd dialogs show a black area framed by the client rectangle upon close. This is very noticeable. |
memeplex
commented
Apr 17, 2014
ghost
commented
Apr 17, 2014
|
I had the same shadow problem with Openbox on Arch. Excluding "_GTK_FRAME_EXTENTS@:c" fixed it for me. Thanks all! |
memeplex
commented
Apr 17, 2014
|
Just in case you're interested I've reported the black rectangle issue in the openbox bugtracker. |
memeplex
referenced this issue
Apr 17, 2014
Closed
Inconsistency between `shadow-exclude` and `fade-exclude` #190
orschiro
commented
Apr 18, 2014
|
Thanks for the hints regarding This resolved the issue for me on Openbox with Gnome Screenshot. |
ncmprhnsbl
commented
Apr 19, 2014
|
using arch and openbox |
memeplex
commented
Apr 19, 2014
|
Did you tried |
ncmprhnsbl
commented
Apr 19, 2014
|
yes, same for all suggested excludes. |
memeplex
commented
Apr 19, 2014
|
Syntax looks wrong anyway: |
ncmprhnsbl
commented
Apr 19, 2014
|
Ah yes, thanks for clearing that up, didnt actually need those other excludes anyway. |
added a commit
that referenced
this issue
Apr 19, 2014
|
Yes, Both rules may fail to work on the moment the window gets destroyed, because of something hard to control for us. I will explain in #190 later. I haven't looked into Openbox's code regarding the ARGB window fade out "black rectangle" issue, but what I could confirm is ARGB windows look correct when faded out on fvwm with compton, and xcompmgr fails in the same way with Openbox, so this probably is tied to some sort of behavior of Openbox. |
memeplex
commented
Apr 19, 2014
|
@richardgv regarding the black rectangle, have you read my last comment in #131? Last night I debugged openbox thoroughly and the black rectangle appears way before the unmap event is handled by the wm, I'm 99% sure the client itself is clearing its contents. When I set a very noticeable fade step (so that the fade in/out take a number of seconds) I can clearly observe the same symptom in pekwm, fluxbox and awesome, but since these wms set a light background it's almost impossible to detect the (light) rectangle if the fading out is quick or excluded. Besides that, if you put a breakpoint at the beginning of
|
memeplex
referenced this issue
Apr 19, 2014
Open
Windows flash black then fade away with -f on close #131
amatriain
commented
Apr 25, 2014
|
I was having the same problem with Arch, Xfce + Compton. Adding |
mar04
commented
May 1, 2014
|
That fix doesn't work for me. Here is my config:
I'm using Arch with gtk 3.12.1-2, compton from git and i3-wm.
|
|
I can't see an issue from your screenshots. Mind telling me the exact problem you found?
|
mar04
commented
May 1, 2014
|
I probably misunderstood what this issue is about. I just want to get rid of that extra space around windows of gnome 3 apps. Can I achieve that through some compton setting? |
ncmprhnsbl
commented
May 1, 2014
|
re:mar04. |
I see.
|
mar04
commented
May 2, 2014
|
Thanks for explanation and all the tips. The least invasive way seems to be editing GTK theme. I found about it here: baskerville/bspwm#133 and it works. |
|
Oh, yeah, that's a lot more cleaner. Thanks! :-) |
richardgv
added
the
bad-app?
label
May 17, 2014
gianlucapettinello
commented
Jun 22, 2014
|
@mar04: |
PCMan
commented
Aug 23, 2014
|
Try this hack: |
actionless
commented
Aug 23, 2014
|
i am using such workaround to remove additional shadow and borders from GTK3 apps:
|
blasterbug
commented
Dec 12, 2014
|
@actionless good trick but since i'm using it, i can't resize GTK3 apps ! |
actionless
commented
Dec 12, 2014
|
try to change to: .window-frame:backdrop {
box-shadow: 0 0 0 black;
border-style: none;
margin: 0;
border-radius: 0;
}
.titlebar {
border-radius: 0;
}
|
blasterbug
commented
Dec 12, 2014
|
Works, but ugly shadow is back. |
actionless
commented
Dec 12, 2014
|
hm, mb smth like that? .window-frame, .window-frame:backdrop {
box-shadow: 0 0 0 black;
}
.window-frame:backdrop {
border-style: none;
margin: 0;
} |
blasterbug
commented
Dec 12, 2014
|
Haha, still not ! -.-" |
actionless
commented
Dec 12, 2014
|
yup, it's meant to be sorta of that. |
tigamai
commented
Mar 1, 2015
|
Had the same problem with gtk3/compton/i3. Using i3 4.8-3, gtk3 3.14.9-1, compton v0.1_beta2-5 on Arch. The other fixes suggested here didn't work for me. The following fixed the problem for me: You need to edit the file ~/.config/gtk-3.0/gtk.css .window-frame, .window-frame:backdrop {
box-shadow: 0 0 0 black;
border-style: none;
margin: 0;
border-radius: 0;
}
.titlebar {
border-radius: 0;
} |
rilian-la-te
commented
Apr 10, 2015
|
On GTK 3.16 fix adding GTK_FRAME_EXTENTS to compton.conf not working anymore. |
rilian-la-te
commented
Apr 10, 2015
ncmprhnsbl
commented
Apr 10, 2015
|
@rilian-la-te , your screenshot looks like what i expect to see using the gtk-3.0/gtk.css theme edits in above posts, instead of the GTK_FRAME_EXTENTS exclude. ie compton is drawing shadows, the arb window decorations are turned off. |
theferrit32
commented
Apr 11, 2015
|
The issue you're seeing is unrelated to compton as far as I can tell. The recent update gtk 3.16 seems to have broken pretty much every previous On Fri, Apr 10, 2015 at 7:32 PM, ncmprhnsbl notifications@github.com
|
added a commit
to Schnouki/dotfiles
that referenced
this issue
May 12, 2015
Frodox
commented
May 24, 2015
|
@tigamai thank you very much, works fine :) |
snj33v
commented
Jun 16, 2015
onodera-punpun
commented
Jun 18, 2015
|
Very first link when googling "double shadow compton gtk3": https://wiki.archlinux.org/index.php/Compton#Dual_shadow_on_some_GTK3_applications it even has a fix. |


hexchain commentedApr 15, 2014
With those GTK3 applications that have their own shadow (and probably window border), if compton's shadow is turned on, those windows will have bigger square box with shadow surrounding them.
Screenshot with compton shadow on: http://i.imgur.com/AbWHh66.png
compton shadow off: http://i.imgur.com/k0nFnT4.png
I'm using Openbox on Arch Linux.