From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: raise-frame doesn't work in Fedora Core 4 Date: Wed, 01 Nov 2006 18:15:51 -0500 Message-ID: <87wt6e7o7s.fsf@stupidchicken.com> 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 1162422986 10328 80.91.229.2 (1 Nov 2006 23:16:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 23:16:26 +0000 (UTC) Cc: Masatake YAMATO , Katsumi Yamaoka , "Jan D." , Kenichi Handa , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 02 00:16:21 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 1GfPJM-000333-JJ for ged-emacs-devel@m.gmane.org; Thu, 02 Nov 2006 00:15:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfPJL-0003jk-W1 for ged-emacs-devel@m.gmane.org; Wed, 01 Nov 2006 18:15:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfPJ3-0003e5-H8 for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:15:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfPJ1-0003Zf-BQ for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:15:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfPJ1-0003ZH-5h for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:15:35 -0500 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfPJ1-0000zK-3x for emacs-devel@gnu.org; Wed, 01 Nov 2006 18:15:35 -0500 Original-Received: by cyd (Postfix, from userid 1000) id 552D64E452; Wed, 1 Nov 2006 18:15:51 -0500 (EST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Tue\, 31 Oct 2006 14\:01\:52 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) 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:61581 Archived-At: Stefan Monnier writes: >> Rationale: XSetInputFocus is not sufficient, since the window may be >> hidden on another virtual desktop ( in that case XSetInputFocus >> fails with a BadWindow error ) > > 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). If you really want to know the answer, the logical thing is to ask at wm-spec-list@gnome.org (to post to that list you need to subscribe at wm-spec-list-request@gnome.org, or subscribe to the no-traffic list post-only@gnome.org). If you want to summarize the situation and ask the folks there, that'd be great. (Though my money is on "misfeature needed for some odd reason"; I think we should just apply the patch if it demonstrably works, especially since it shouldn't have any harmful effects.)