Dear Lazyweb: Shadows and Shaped Windows

I’ve been trying for a couple of days to figure out why a shaped window in Compiz doesn’t have a shadow. After looking through the Emerald and GTK+ decorators’ code, it seems that they only apply a shadow if the window has a titlebar decoration. This seems quite silly and limiting. Does anybody know of a way around this, or why we’re limited in such a way? Is this something that could be fixed?

Love,

Christian

7 thoughts on “Dear Lazyweb: Shadows and Shaped Windows”

  1. we have a similar problem in metacity because of the way we generate the shadows. We pregenerate a rectangular gaussian shadow map and then scale it to the size needed. This works fine for normal windows, and for nearly rectangular shaped windows (such as metacity’s rounded corners). But for obscurely shaped windows, it fails miserably because the shadow shape doesn’t follow the window shape.

    I don’t know how compiz does it but it may be a similar reason, and so they’ve disabled shadows for those windows.

  2. Or maybe it’s because some software (ie Firefox) use windows for menus ? I guess we don’t want drop shadow for all popup menus that can appear in Firefox.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top