[compiz] Flat file backend (ini)
Mike Dransfield
mike at blueroot.co.uk
Fri Mar 2 05:35:34 PST 2007
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.
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.
More information about the compiz
mailing list