From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DIvpG-0004Jp-Qi for qemu-devel@nongnu.org; Tue, 05 Apr 2005 17:43:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DIvpE-0004Hk-5X for qemu-devel@nongnu.org; Tue, 05 Apr 2005 17:43:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIvkd-0003Dj-0R for qemu-devel@nongnu.org; Tue, 05 Apr 2005 17:38:23 -0400 Received: from [64.233.184.206] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DIw0i-00043u-Np for qemu-devel@nongnu.org; Tue, 05 Apr 2005 17:55:00 -0400 Received: by wproxy.gmail.com with SMTP id 67so4351605wri for ; Tue, 05 Apr 2005 14:54:43 -0700 (PDT) Message-ID: Date: Tue, 5 Apr 2005 16:54:38 -0500 From: Ryan Rempel Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] A shell script to bring the qemu window to the front in KDE? Reply-To: Ryan Rempel , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I'm writing a little wrapper-style shell script to start qemu up with the appropriate parameters for my setup -- the idea would be to insert this into a KDE menu. One thing I'd like the wrapper to do is figure out whether qemu is currently running, and if so, simply bring its window to the front (rather than launching a second instance -- which is kind of impressive in its own way, but ...). Figuring out whether qemu is currently running isn't that hard, but I'm having trouble figuring out how to bring its window to the front. I guess this may really be a KDE question or an X Window question, or an SDL question, but I figured I'd ask here, as someone must have solved it before (I hope). I hunted around a little for answers, and found some stuff that applies to "native" KDE applications (i.e. using dcop), but I didn't find a more general X Window (or SDL) answer -- but I'm not at all sure I was looking in the right places.