Spice up setstyle
commit859338fd83f10c4bda8f1bf067fe529146330431
authorTamas TEVESZ <ice@extreme.hu>
Thu, 1 Apr 2010 01:32:14 +0000 (1 03:32 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 2 Apr 2010 06:37:16 +0000 (2 08:37 +0200)
tree7b0a2a849bc7308347441352a8301deaf506b3b5
parent1bc042c172053238a4c737f9cd2b85ffabcc6969
Spice up setstyle

- convert to getopt
- tidy xsendevent
- modify hackPathInTexture() so that:
  - it properly figures where the style file is
  - if it's under the user's home directory, that part of the path
    is changed to `~' - this makes your wm configuration usable on
    systems with a network home, used on systems where home is /home,
    or /u, or /export/home, or whatever.

XXX: there's a note WINGs/findfile.c:wexpandpath() stating that
`too many functions handle a return value of NULL incorrectly'. this is
so true. so if anyone is looking for a small project to sink their
teeth in...
util/setstyle.c