On Wed 25 Jun 2014 at 22:23:54 -0400, Stefan Monnier wrote: > FWIW, I wish I could tell ctwm to redirect key-events sent to the > root window so they're sent to some other window (my emacs server, in > this particular case).
In a limited way, ctwm does that already: with icons and subwindows in the icon manager, the keys are copied to the client window. > If we had such a generic redirection facility, then we could use it to > redirect events sent to the Desktop window to the Root window. Good idea! When I get back I'll try to make a little program for it. I think it can easily be made into a small standalone utility: xev shows that you can see events from other windows, and from above we know that they can be forwarded. Together that shows that it is possible to do exactly what's wanted. (When googling I came across another instance: http://standards.freedesktop.org/xembed-spec/0.5/ar01s06.html ) Since such a thing is useful in general, it makes sense to make it stand alone. Also, it may be that if ctwm forwards events from window to window internally, it may not receive them again because it is the sender (but I haven't verified that). > Stefan -Olaf. -- ___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for \X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
pgptNHigsOLhd.pgp
Description: PGP signature
