From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 17:26:28 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 31E99106566C for ; Sun, 25 Mar 2012 17:26:28 +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 E87448FC0A for ; Sun, 25 Mar 2012 17:26:27 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa07 [127.0.0.1]) by ltcfislmsgpa07.fnfis.com (8.14.4/8.14.4) with SMTP id q2PHPHWK018661; Sun, 25 Mar 2012 12:26:26 -0500 Received: from smtp.fisglobal.com ([10.132.206.17]) by ltcfislmsgpa07.fnfis.com with ESMTP id 13syw3112b-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 25 Mar 2012 12:26:26 -0500 Received: from [10.0.0.101] (10.14.152.61) by smtp.fisglobal.com (10.132.206.17) with Microsoft SMTP Server (TLS) id 14.1.323.3; Sun, 25 Mar 2012 12:26:26 -0500 MIME-Version: 1.0 (Apple Message framework v1257) From: Devin Teske In-Reply-To: <4F6F3411.40200@herveybayaustralia.com.au> Date: Sun, 25 Mar 2012 10:26:23 -0700 Message-ID: <60E5D4BF-EEFA-4F10-82F4-0DF81F18CF58@fisglobal.com> References: <4F6F3411.40200@herveybayaustralia.com.au> 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" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:26:28 -0000 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, b= ut 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 clos= e event and kill the process (can't find a better way to handle it). Any id= eas? >=20 I think you want "x11/xnee" from the ports tree. http://www.freshports.org/x11/xnee/ (blurb) =85 Xnee receives X11 protocol data (e.g. XEvents) from an X server= and prints them to a file (or stout)=85 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=20 Full disclosure: Haven't used Xnee yet, but it has been on my radar as "som= ething cool to look into" for awhile now. --=20 Devin > The DE is lightweight (Icewm, LXDE, similar) so the tray is either non ex= istent 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 p= roblem 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.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.