ChipLog

Various stuff from some guy.

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

Advertisement

7 Responses to Dear Lazyweb: Shadows and Shaped Windows

  1. ken January 29, 2008 at 1:59 PM

    Maybe it’s been done that way to subtly discourage the use of shaped windows. Shaped windows are horrible.

  2. ChipX86 January 29, 2008 at 2:05 PM

    Shaped windows are absolutely essential for our case. If you look at one of my more recent posts, you can probably guess why.

  3. Livio January 29, 2008 at 2:32 PM

    I also don’t like that bug. It worked on Beryl and earlier Compiz Fusion.
    Notification daemon had shadows like the normal tooltips.

  4. iain January 29, 2008 at 4:10 PM

    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.

  5. Julien February 17, 2008 at 4:11 AM

    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.

  6. Jimmy March 3, 2008 at 4:03 AM

    I would agree its to discourage the use of shaped windows. I dont think you’ll find a way round it.

  7. ChipX86 March 3, 2008 at 11:48 AM

    Sadly, that makes the feature we’re about to release a lot less awesome.

Leave a Reply

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

Gravatar
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

Follow

Get every new post delivered to your Inbox.