From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: raise-frame doesn't work in Fedora Core 4 Date: Tue, 31 Oct 2006 14:01:52 -0500 Message-ID: References: <45478595.5090306@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162321350 9607 80.91.229.2 (31 Oct 2006 19:02:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 19:02:30 +0000 (UTC) Cc: Masatake YAMATO , Katsumi Yamaoka , emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 31 20:02:26 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 1GeysL-0000Iv-Jn for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 20:02:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GeysL-000180-95 for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 14:02:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Geys9-00015e-0L for emacs-devel@gnu.org; Tue, 31 Oct 2006 14:02:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Geys4-00010G-OU for emacs-devel@gnu.org; Tue, 31 Oct 2006 14:02:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Geys4-000103-Iq for emacs-devel@gnu.org; Tue, 31 Oct 2006 14:02:00 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Geys4-0004fl-14 for emacs-devel@gnu.org; Tue, 31 Oct 2006 14:02:00 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 91E462CF075; Tue, 31 Oct 2006 14:01:57 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 94FCD3FE0; Tue, 31 Oct 2006 14:01:52 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 74B7E6CAB2; Tue, 31 Oct 2006 14:01:52 -0500 (EST) Original-To: "Jan D." In-Reply-To: <45478595.5090306@swipnet.se> (Jan D.'s message of "Tue\, 31 Oct 2006 18\:19\:17 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca 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:61490 Archived-At: >> Is there some documented rationale for this wm-spec thingy? >> I mean, why on earth should the window-manager need more than "XRaiseWindow" >> to figure out that the window should be brought on top? > Activate doesn't have to mean raise. It usually mean uniconify, focus and > possibly raise if the WM manager wants it. If you have several workspaces, > you can have different active windows in each one of them. Here is the > (very brief) rationale from freedesktop: > Rationale: XSetInputFocus is not sufficient, since the window may be > hidden on another virtual desktop ( in that case XSetInputFocus > fails with a BadWindow error ) > But I'm not sure exactly why this is needed. I don't understand: AFAICT the OP's problem is that `raise-frame' does not actually raise the frame. But `raise-frame' calls XRaiseWindow, which seems like it should raise the frame, don't you think? XSetInputFocus seems unrelated (especially since `raise-frame' doesn't call it AFAIK). In other words, to me it seems that if `raise-frame' requires this _NET_ACTIVE_WINDOW footwork to work, it's a bug either in the WM or in the wm-spec: `XRaiseWindow' should do just what it says, i.e. raise the window. But maybe there's a rationale for this, so it's just a misfeature needed for some odd reason. In that case I'd be interested to hear what's the reason (and if the reason has to do with input-focus, I'll need more info to understand what's the relationship with raise-frame). Stefan