[compiz] [PATCH] Notification on window restacking

David Reveman davidr at novell.com
Thu Mar 29 05:24:17 PDT 2007


On Sat, 2007-03-24 at 12:32 -0500, Erkin Bahceci wrote: 
> Hi,
> 
> This patch adds notification on window restacking. Plugins may need to
> do something when that happens. For example, it is used in the new
> version of animation plugin to perform a fade effect when a window
> moves above or below other windows (in the plugin's settings this
> effect is selected as a focus effect, but it's actually a restack
> effect).

Some kind of notification for this would be useful. I'm not sure how
much you can do with it in the current infrastructure, though.

It seems to me that to be able to do something useful on stack changes a
plugin must be able to delay the stack change until later. The most
appropriate way to do this is to have the plugin prevent the core from
rendering the core instance of the window at the new stack position
until some plugin effect is completed. This is easy to do today but it's
hard to have the window rendered at a different stack position by the
plugin. This is one of the things that are addressed in the new drawing
framework that I'm going to propose soon.

Nevertheless, this doesn't stop us from adding this notification
function but before we do that I'd like us to decide if we want to move
to using functions that apply changes instead notification functions. I
just sent a mail about this to the list.

- David



More information about the compiz mailing list