By popular request

Some people have expressed concern about the panel drop shadows. At least three people didn’t like that they drew the shadows over the windows close to them. So in response I’ve just committed a change that makes the panel drop shadows only draw on the desktop. I think it looks quite neat and tidy actually. One person said “Oh cute”

Here’s a now obligatory screenshot


  1. Posted November 26, 2007 at 1:10 am | Permalink

    Oh, and I removed drop shadows from around dragging icons, so when you drag files there won’t be an ugly shadow now.
    And I fixed a few potential crashes and documented the source with a huge explanation of how compositing works.

  2. Cobardolas anónimo
    Posted November 26, 2007 at 1:43 am | Permalink

    Very nice. And it’s right too: in the real world shadows don’t drop over objects on the same Z level. I love Metacity, I really do.

  3. Mattias Bengtsson
    Posted November 26, 2007 at 2:18 am | Permalink

    Neat! This looks better and better.
    Request: Antialias the rounded corners.

  4. Posted November 26, 2007 at 9:12 am | Permalink

    *Two* persons said “Oh cute”. The other one was me :)

  5. Rui
    Posted November 26, 2007 at 5:05 pm | Permalink

    *Two* +1 == *Three* :-)

  6. Posted November 27, 2007 at 3:24 pm | Permalink

    Amazing stuff. I would also suggest to make the shadow of the unfocused windows much much more subtle (I’d actually drop it completely, but I’m an extremist). That way it aids showing which window is focused.

  7. Posted November 27, 2007 at 4:12 pm | Permalink

    Jakub: Actually, someone else pointed out to me today that that was how OSX did it, by using a smaller shadow. I’ll look into doing that too.

  8. Posted November 27, 2007 at 10:57 pm | Permalink

    Hi Iain,
    great work on this side of Metacity, thanks. I’m running svn revision 3445 but I still have drop shadows on dragging icons and tooltips (did you remove tooltips shadow too?) and the dropping shadow of panel is drawn over windows. Any idea?

  9. Posted November 27, 2007 at 11:33 pm | Permalink

    luca: yeah, I had to revert the panel drop shadows over windows thing, it had a weird bug in it that I’ve not found yet. I’ve not touched tooltips shadows, and although it was working for me, I seem to have a drop shadow only on the first icon I drag, all other drags have no shadows. I’ll look into that too.

  10. Posted November 28, 2007 at 3:01 pm | Permalink

    WOW! great work!

    I just checked out your branch from gnome svn and after one fast compile i got it working. It does quite better in performance vs compiz. My problems with compiz were related with scrolling, it was unusable, as the application stopped scrolling quite after i released my mouse wheel. With metacity there’s a lag there also, but it’s far more responsive. It seems to consume double the cpu in comparation with plain metacity.

    This is great i can run awn now with out the need of the bloated compiz-fusion! :P

    Also, if you are open to opinions, i dont like the black border on the windows when you do the ALT-tab.

    (note i tested this on my Thinkpad t60 with an ati X1300)

  11. Luca Ferretti
    Posted December 5, 2007 at 1:25 pm | Permalink

    Great! This drop shadow for panel is definitively better :-)

    I can confirm the drop shadow only on the first dragged icon.

  12. Luca Ferretti
    Posted December 5, 2007 at 2:20 pm | Permalink

    Iain, another note about the shadows: it seems that kwin for KDE4 is using a texture to draw the shadow. In a recent change, they commited an updated texture using a gaussian blur instead of a linear gradient. This should make the shadow more realistic.

    From KDE svn log

  13. Henrique
    Posted December 7, 2007 at 10:41 pm | Permalink

    Perfectness is on the details.

    Yep, thats cute. Thanks!

  14. Henrique
    Posted December 7, 2007 at 10:45 pm | Permalink


    “Request: Antialias the rounded corners.” +1

    At least some drawing method, primitive, or option to the Metacity XML theme file. Something like would be great!