Yay!
I tried the above snippet in a waitforkey loop, and it works! Only... key code != character code, so it just displays question marks and crazy characters.
I'll try to find out how to send things from C code. I think I remember reading this all works over dbus, but I might be wrong.
[edit]
Code:
signal sender=org.freedesktop.DBus -> dest=(null destination) pat
h=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=N
ameOwnerChanged
string ":1.239"
string ""
string ":1.239"
signal sender=org.freedesktop.DBus -> dest=(null destination) pat
h=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=N
ameOwnerChanged
string ":1.239"
string ":1.239"
string ""
dbus-monitor of the set-prop snippet. Doe not make any sens to me, but at least some dbus stuff is sent.
The strings appear to be name, old owner, new owner:
http://dbus.freedesktop.org/doc/dbus...erChanged.html
Still makes no sense. I think this is just a side-effect. The real action is happening somewhere else.
Maybe a strace on lipc will reveal something?