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. iain

    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.

    Reply
  2. Julien

    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.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s