http://itmages.ru/image/view/1703425/7bf40d74
http://itmages.ru/image/view/1703800/2554c05a
Of course, I can disable shadows for Firefox, but it is ugly when all programs have shadows while Firefox doesn't.
It seems that i found the workaround: include "class_g = 'Firefox' && !window_type *= 'menu'" in your shadow-exclude condition. However I don't think that it is the real solution: other compositors, like compiz or mutter draw firefox shadows correctly without additional configuration.
Also this isn't ideal solution. Ugly shadow from site details disappeared, but not from bookmarks menu.
http://itmages.ru/image/view/1703840/9f23213b
http://itmages.ru/image/view/1703843/718742ed
-z (clear-shadow) to get nicer shadow on those windows. Note this may have negative effects on other ARGB windows: Your ARGB terminal might be severely darkened, and some ARGB windows in other shapes might show up with a huge shadow.--shadow-exclude "class_g = 'Firefox' && argb".Another solution is to use some better rules, like --shadow-exclude "class_g = 'Firefox' && argb".
Thanks, it solved the problem.
Nevertheless, how it solved in other compositors? I doubt that they use custom rules for firefox.
Nevertheless, how it solved in other compositors? I doubt that they use custom rules for firefox.
compiz-0.8.8 doesn't draw shadows on any ARGB windows by default (search for DECOR_DISPLAY_OPTION_SHADOW_MATCH in its plugins/decoration.c, at line 1230), but its window decorator may draw shadow unconditionally. In effect, it's similar with --shadow-exclude 'argb && (override_redirect || wmwin)' in compton.
cairo-compmgr does no special treatment on ARGB windows.
Quick update: if you're going to use "class_g = 'Firefox' && !window_type *= 'menu'", please note that it may be lowercase firefox instead. They might have changed the class name.
How do I disable shadows for Firefox Nightly? "class_g = 'Firefox' && !window_type *= 'menu'" doesn't seem to be working, and I don't know how to figure out the class name
I don't know how to figure out the class name
@cubetastic33 - You can use the xprop tool in order to do so. After launching click into the window in question, and you'll get the window properties as output.
One of these is an array called something like _WM_WINDOW_CLASS or _WM_CLASS (with or without the leading underscore) consisting of two string values, the later of which is the window "class". (The former one is the "instance", btw.)
E/ A simple xprop WM_CLASS followed by a click into the window should give you _only_ the output you need.
Ah, thanks!
class_g = 'Firefox' && !window_type *= 'menu' also disable the shadow of firefox main window.
Change it to "class_g = 'firefox' && window_type = 'utility'" will only exclude tooltip menu.
The default system-wide configuration includes some shadow-excludes, maybe one of these for Firefox should be in there too?
Most helpful comment
class_g = 'Firefox' && !window_type *= 'menu'also disable the shadow of firefox main window.Change it to
"class_g = 'firefox' && window_type = 'utility'"will only exclude tooltip menu.