X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ionconf%2Fnode6.html;h=200471fca2d1391051b539c7480523b007e0dec4;hb=428266c577f55bd77cf036ed0d2af379613471e4;hp=7baa979c00be598aa0b2fa0fa9de890c072a6bbd;hpb=3e627fc0998d082559ba00e28cbb264eb38b288d;p=ion3-doc.git diff --git a/ionconf/node6.html b/ionconf/node6.html index 7baa979..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 @@ -201,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 @@ -320,31 +323,31 @@ local settings=table.join(statusd.get_config("foo"), defaults)