From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 15:04:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 12B68106567E for ; Sun, 25 Mar 2012 15:04:57 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id BD8348FC21 for ; Sun, 25 Mar 2012 15:04:56 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.182]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id E06595C22 for ; Mon, 26 Mar 2012 01:18:23 +1000 (EST) Message-ID: <4F6F3411.40200@herveybayaustralia.com.au> Date: Mon, 26 Mar 2012 01:04:49 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 15:04:57 -0000 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? 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.