Intercepting X11 events

Devin Teske devin.teske at fisglobal.com
Sun Mar 25 17:40:50 UTC 2012


On Mar 25, 2012, at 10:26 AM, Devin Teske wrote:

> 
> 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.
> 
> http://www.freshports.org/x11/xnee/
> 
> (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 

Sorry, had a whole list of "cool X11 ports" (like xpra, xmx, and xwatchwin), but they didn't fit what you're looking for.

No, I think "x11/xnee" is what you're looking for.
-- 
Devin


> 
> Full disclosure: Haven't used Xnee yet, but it has been on my radar as "something cool to look into" for awhile now.
> -- 
> Devin
> 
> 
>> 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 freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 
> _____________
> 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.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

_____________
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