From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: raise-frame doesn't work in Fedora Core 4 Date: Wed, 01 Nov 2006 08:24:59 +0100 Message-ID: <45484BCB.8060902@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162365981 879 80.91.229.2 (1 Nov 2006 07:26:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 07:26:21 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 01 08:26:19 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GfAUJ-0003Ri-6i for ged-emacs-devel@m.gmane.org; Wed, 01 Nov 2006 08:26:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfAUI-0005DV-KX for ged-emacs-devel@m.gmane.org; Wed, 01 Nov 2006 02:26:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfAU4-0005CB-2m for emacs-devel@gnu.org; Wed, 01 Nov 2006 02:26:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfAU2-0005AK-BQ for emacs-devel@gnu.org; Wed, 01 Nov 2006 02:25:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfAU2-0005A6-6y for emacs-devel@gnu.org; Wed, 01 Nov 2006 02:25:58 -0500 Original-Received: from [81.228.8.182] (helo=av10-2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfAU1-0004j3-Mn for emacs-devel@gnu.org; Wed, 01 Nov 2006 02:25:58 -0500 Original-Received: by av10-2-sn2.hy.skanova.net (Postfix, from userid 502) id A9DAA37EA9; Wed, 1 Nov 2006 08:25:56 +0100 (CET) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av10-2-sn2.hy.skanova.net (Postfix) with ESMTP id 86CA237E49; Wed, 1 Nov 2006 08:25:56 +0100 (CET) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 6779337E5C; Wed, 1 Nov 2006 08:25:56 +0100 (CET) User-Agent: Thunderbird 1.5.0.7 (X11/20060913) Original-To: rms@gnu.org In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61537 Archived-At: Richard Stallman skrev: > Now I realized I can use the program called `wmctrl'[1] to solve > the problem. Here's an new advice: > > (defadvice raise-frame (after make-it-work (&optional frame) activate) > "Make it work." > (call-process > "wmctrl" nil nil nil "-i" "-R" > (frame-parameter (or frame (selected-frame)) 'outer-window-id))) > > That is an ugly solution. How does the wmctrl program actually do > this? It figures out the current desktop (i.e. if you have more than one workspace/desktop) by inspecting the property _NET_WM_DESKTOP or _WIN_WORKSPACE on the root window. It then switches the window to the current desktop by sending a client message _NET_CURRENT_DESKTOP. Finally it activates the window by sending the client message _NET_ACTIVE_WINDOW. So it does more than the patch sent erlier in this thread. > > I have only the knowledge that Fedora Core 4 > uses the metacity window manager, sorry. > > Does this use of wmctrl work correctly with other window managers? It works with window managers that understand and comply with the newest freedesktop Window Manager Specification (http://freedesktop.org/wiki/Standards_2fwm_2dspec), i.e. Metacity (Gnome), KWin (KDE), xfwm4 (xfce) and other newer window managers. There is a list on the web page. Certainly not with older VM:s like twm and mwm. Jan D.