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: Thu, 02 Nov 2006 08:30:29 +0100 Message-ID: <45499E95.1080403@swipnet.se> References: <45484BCB.8060902@swipnet.se> 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 1162452710 14687 80.91.229.2 (2 Nov 2006 07:31:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2006 07:31:50 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 02 08:31: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 1GfX39-0005bz-8W for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2006 08:31:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfX38-0000sG-NE for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2006 02:31:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfX2u-0000pF-M9 for emacs-devel@gnu.org; Thu, 02 Nov 2006 02:31:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfX2t-0000nj-4v for emacs-devel@gnu.org; Thu, 02 Nov 2006 02:31:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfX2t-0000nd-12 for emacs-devel@gnu.org; Thu, 02 Nov 2006 02:31:27 -0500 Original-Received: from [81.228.9.186] (helo=av9-2-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfX2o-0001Zq-PW; Thu, 02 Nov 2006 02:31:23 -0500 Original-Received: by av9-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 0DC15380E1; Thu, 2 Nov 2006 08:31:21 +0100 (CET) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av9-2-sn3.vrr.skanova.net (Postfix) with ESMTP id EE81637EC0; Thu, 2 Nov 2006 08:31:20 +0100 (CET) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id AF05637E63; Thu, 2 Nov 2006 08:31:20 +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:61599 Archived-At: Richard Stallman skrev: > 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? I think sending the _NET_ACTIVE_WINDOW is correct here according to the new specification. > Is it right to move the window to the current desktop? It depends on how we want raise-frame to behave. Do we want Emacs to switch the frame to the current desktop or not? To not switch is the current implementation so if we want to change I suggest next release. > It seems strange to me that raise-frame would do that. > > Would it be hard to code this in C? No, it is simple. It is actually doable from lisp also (with an X11 enabled Emacs). The lisp drag-and-drop code for example sends client messages all the time. > > > 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? No, it becomes a noop. The client message gets sent to the root window but since nobody (i.e. the window manager) isn't listening for it, nothing more happens. Jan D.