From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 17:40:50 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A2861065672 for ; Sun, 25 Mar 2012 17:40:50 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id D485A8FC1A for ; Sun, 25 Mar 2012 17:40:48 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa07 [127.0.0.1]) by ltcfislmsgpa07.fnfis.com (8.14.4/8.14.4) with SMTP id q2PHPSDB019191; Sun, 25 Mar 2012 12:40:48 -0500 Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa07.fnfis.com with ESMTP id 13syw311uw-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 25 Mar 2012 12:40:48 -0500 Received: from [10.0.0.101] (10.14.152.61) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Sun, 25 Mar 2012 12:40:47 -0500 MIME-Version: 1.0 (Apple Message framework v1257) From: Devin Teske In-Reply-To: <60E5D4BF-EEFA-4F10-82F4-0DF81F18CF58@fisglobal.com> Date: Sun, 25 Mar 2012 10:40:45 -0700 Content-Transfer-Encoding: quoted-printable Message-ID: References: <4F6F3411.40200@herveybayaustralia.com.au> <60E5D4BF-EEFA-4F10-82F4-0DF81F18CF58@fisglobal.com> To: Da Rock X-Mailer: Apple Mail (2.1257) X-Originating-IP: [10.14.152.61] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498, 1.0.260, 0.0.0000 definitions=2012-03-25_06:2012-03-23, 2012-03-25, 1970-01-01 signatures=0 Content-Type: text/plain; charset="windows-1252" Cc: freebsd-questions@freebsd.org Subject: Re: Intercepting X11 events X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2012 17:40:50 -0000 On Mar 25, 2012, at 10:26 AM, Devin Teske wrote: >=20 > On Mar 25, 2012, at 8:04 AM, Da Rock wrote: >=20 >> 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. >>=20 >> 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. >>=20 >> So I'm looking to find a wrapper, or a script that can intercept the clo= se event and kill the process (can't find a better way to handle it). Any i= deas? >>=20 >=20 > I think you want "x11/xnee" from the ports tree. >=20 > http://www.freshports.org/x11/xnee/ >=20 > (blurb) =85 Xnee receives X11 protocol data (e.g. XEvents) from an X serv= er and prints them to a file (or stout)=85 >=20 > I'd think you'd be able to watch for the particular Event you're interest= ed in. >=20 > Another think you may want to look into is=20 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. --=20 Devin >=20 > Full disclosure: Haven't used Xnee yet, but it has been on my radar as "s= omething cool to look into" for awhile now. > --=20 > Devin >=20 >=20 >> The DE is lightweight (Icewm, LXDE, similar) so the tray is either non e= xistent or incompatible; the app itself is (#%$&!) java. Yep, thats right -= it only speaks Gnome/KDE... >>=20 >> Cheers >>=20 >>=20 >> 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@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" >=20 > _____________ > The information contained in this message is proprietary and/or confident= ial. 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 awa= re that any message addressed to our domain is subject to archiving and rev= iew by persons other than the intended recipient. Thank you. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.