From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: raise-frame doesn't work in Fedora Core 4 Date: Wed, 01 Nov 2006 23:42:40 -0500 Message-ID: References: <45484BCB.8060902@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1162442631 25127 80.91.229.2 (2 Nov 2006 04:43:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2006 04:43:51 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 02 05:43:47 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 1GfUQa-0006V6-FJ for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2006 05:43:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfUQa-0002rX-0U for ged-emacs-devel@m.gmane.org; Wed, 01 Nov 2006 23:43:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfUPb-0002Jz-F9 for emacs-devel@gnu.org; Wed, 01 Nov 2006 23:42:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfUPb-0002Ji-1h for emacs-devel@gnu.org; Wed, 01 Nov 2006 23:42:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfUPa-0002Je-PB for emacs-devel@gnu.org; Wed, 01 Nov 2006 23:42:42 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfUPa-00063H-Sr for emacs-devel@gnu.org; Wed, 01 Nov 2006 23:42:42 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GfUPY-0006Jp-UL; Wed, 01 Nov 2006 23:42:41 -0500 Original-To: =?ISO-8859-15?Q?Jan_Dj=E4rv?= In-reply-to: <45484BCB.8060902@swipnet.se> (message from =?ISO-8859-15?Q?Jan_Dj=E4rv?= on Wed, 01 Nov 2006 08:24:59 +0100) 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:61593 Archived-At: 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. What part of this is really right to do, here? Is it right to move the window to the current desktop? It seems strange to me that raise-frame would do that. Would it be hard to code this in C? > 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. What happens if you do this (via wmctrl or directly) and you're using an older wm? Does it do any harm?