From owner-freebsd-hackers Sat Aug 29 01:01:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA28641 for freebsd-hackers-outgoing; Sat, 29 Aug 1998 01:01:17 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freedomnet.com (freedomnet.com [198.240.104.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA28636 for ; Sat, 29 Aug 1998 01:01:14 -0700 (PDT) (envelope-from kbyanc@freedomnet.com) Received: (from kbyanc@localhost) by freedomnet.com (8.8.7/8.8.7/antispam) id DAA07731; Sat, 29 Aug 1998 03:55:43 -0400 (EDT) X-Envelope-To: freebsd-hackers@freebsd.org Date: Sat, 29 Aug 1998 03:55:41 -0400 (EDT) From: Kelly Yancey To: freebsd-hackers@FreeBSD.ORG Subject: determining an X window ID? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have written a fairly short shell script to launch xmcd which first checks to see if any other cd player is already running and if so, does not launch another instance of xmcd (for when I click on the wrong thing :) ) Anyway, I'm running fvwm2 and thought it would sure be nice if I could somehow have the script bring the already running cd player to the foreground...kind of a "Here it dummy" response. It's starting to look like this seemingly simple task is anything but. I guess the question is: is there anyway to get the X window ID for a process? And if so, other than writing my own X app or fvwm module, is there anyway to tell X to bring that window ID to the foreground. I was thinking that if I could somehow just get the fvwm command "windowid raisefocus" to fvwm2 everything would be good.... (raisefocus does just what it says...issues a Raise and then a Focus command). Any insight would be much appreciated. Kelly Yancey ~kbyanc@freedomnet.com~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message