Intercepting X11 events

Devin Teske devin.teske at
Sun Mar 25 17:26:28 UTC 2012

On Mar 25, 2012, at 8:04 AM, Da Rock wrote:

> I'm not 100% sure where else to ask this. I have an annoying window that disappears when I click close (ha ha, yes I know it will usually do that, but this one doesn't go away) but it is unable to cooperate with the system tray so it simply becomes "invisible", and hangs about in the background.
> In my investigationings I had a brainwave that since I cannot change the program (not without enormous effort) in the short term, maybe I can find a way to terminate the program and manage it externally with a script.
> So I'm looking to find a wrapper, or a script that can intercept the close event and kill the process (can't find a better way to handle it). Any ideas?

I think you want "x11/xnee" from the ports tree.

(blurb) … Xnee receives X11 protocol data (e.g. XEvents) from an X server and prints them to a file (or stout)…

I'd think you'd be able to watch for the particular Event you're interested in.

Another think you may want to look into is 

Full disclosure: Haven't used Xnee yet, but it has been on my radar as "something cool to look into" for awhile now.

> The DE is lightweight (Icewm, LXDE, similar) so the tray is either non existent or incompatible; the app itself is (#%$&!) java. Yep, thats right - it only speaks Gnome/KDE...
> Cheers
> Afterword: And yes, it took me that long to figure out the Java systray problem and the lack of a solution in my googling.
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

More information about the freebsd-questions mailing list