X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ionconf%2Fnode6.html;h=200471fca2d1391051b539c7480523b007e0dec4;hb=428266c577f55bd77cf036ed0d2af379613471e4;hp=88aa9be89661e5a3719240a63cd598f2d4affce6;hpb=da1e04def26932e7f91a2106c885142e7fafe59b;p=ion3-doc.git diff --git a/ionconf/node6.html b/ionconf/node6.html index 88aa9be..200471f 100644 --- a/ionconf/node6.html +++ b/ionconf/node6.html @@ -28,31 +28,31 @@ original version by: Nikos Drakos, CBLU, University of Leeds @@ -61,20 +61,20 @@ original version by: Nikos Drakos, CBLU, University of Leeds Subsections @@ -126,8 +126,7 @@ the hook reference, section 6.9.

Note that many of the hooks are called in ``protected mode'' and can not -use any functions that modify Ion's internal state. TODO: More detailed -documentation when this is final. +use any functions that modify Ion's internal state.

@@ -202,13 +201,16 @@ region, use WRegion.set_name3.5. To match a particular winprop using whatever way you want to, just set the match -field of the winprop to a function that receives the client window -as its sole parameter, and that returns true if the winprop -matches, and false otherwise. +field of the winprop to a function that receives the as its parameters +the triple (prop, cwin, id), where prop is the table for +the winprop itself, cwin is the client window object, +and id is the WClientWin.get_ident result. +The function should return true if the winprop matches, +and false otherwise. Note that the match function +is only called after matching against class/role/instance.

-The class, instance and role properties can be obtained with -WClientWin.get_ident, and the title with WRegion.name. +The title of a client window can be obtained with WRegion.name. If you want to match against (almost) arbitrary window properties, have a look at the documentation for the following functions, and their standard Xlib counterparts: ioncore.x_intern_atom @@ -321,31 +323,31 @@ local settings=table.join(statusd.get_config("foo"), defaults)