[compiz] Flat file backend (ini)
David Reveman
davidr at novell.com
Fri Mar 2 04:43:04 PST 2007
On Fri, 2007-03-02 at 13:35 +0000, Mike Dransfield wrote:
> Gerd Kohlberger wrote:
> >
> > I modified the inotify plugin to send an event structure instead of just
> > the file name in the callback. The event contains an event mask to
> > allow to
> > switch between event types in the callback, and the file name.
> >
> > Currently the name variable in the callback sends the event->name of
> > the inotify struct,
> > but that's not very useful. eg. if you watch two files directly, there
> > is no way to distinguish
> > between them in the callback, because event->name will be empty.
> >
> > So the new CompNotifyEvent will send the watch path if a file is watched,
> > or the relative filename if a directory is watched.
> >
> > I think this can be very useful for the ini plugin and for other
> > plugins as well.
> >
> > Any thoughts on that?
>
> This seems roughly what I would need. I applied your patches and added
> IN_MODIFY since I need that too.
Yes, we need a MODIFY bit.
>
> I have a new version which compiles with those patches and has the match
> type. It is not sending the notification correctly, I am not sure if it
> is my
> fault or not. Modify does not work at all, and delete just passed through
> a mask of 0.
>
> http://www.anykeysoftware.co.uk/compiz/plugins/ini.c
>
> Once these changes are in head, I will have more of an effort to fix them.
>
> All that needs to be done is make the action options atomic, which might
> be messy. I do not think that it is the cause of the problem with wall, but
> Ill have a go. Actions are working for everything except that one.
OK, lets put it in head now.
- David
More information about the compiz
mailing list