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 10:37:55 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162309128 26783 80.91.229.2 (31 Oct 2006 15:38:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 15:38:48 +0000 (UTC) Cc: Masatake YAMATO , emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 31 16:38:44 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 1Gevh5-0006js-T5 for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 16:38:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gevh5-00061I-DQ for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 10:38:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gevgm-0005xs-82 for emacs-devel@gnu.org; Tue, 31 Oct 2006 10:38:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gevgh-0005om-2L for emacs-devel@gnu.org; Tue, 31 Oct 2006 10:38:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gevgg-0005oW-KB for emacs-devel@gnu.org; Tue, 31 Oct 2006 10:38:02 -0500 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gevgg-0005LZ-IY for emacs-devel@gnu.org; Tue, 31 Oct 2006 10:38:02 -0500 Original-Received: from pastel.home ([70.53.192.11]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061031153800.DKAY27612.tomts16-srv.bellnexxia.net@pastel.home> for ; Tue, 31 Oct 2006 10:38:00 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 809626C35A; Tue, 31 Oct 2006 10:37:55 -0500 (EST) Original-To: Katsumi Yamaoka In-Reply-To: (Katsumi Yamaoka's message of "Tue\, 31 Oct 2006 20\:57\:59 +0900") 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:61480 Archived-At: > + /* See _NET_ACTIVE_WINDOW in > + http://freedesktop.org/wiki/Standards_2fwm_2dspec */ > + XEvent event; > + > + event.xclient.type = ClientMessage; > + event.xclient.serial = 0; > + event.xclient.send_event = True; > + > + event.xclient.message_type = XInternAtom(FRAME_X_DISPLAY (f), > + "_NET_ACTIVE_WINDOW", > + False); > + event.xclient.window = FRAME_OUTER_WINDOW (f); > + event.xclient.format = 32; > + event.xclient.data.l[0] = 1; /* source indication */ > + event.xclient.data.l[1] = 0; /* timestamp */ > + event.xclient.data.l[2] = 0; /* requestor's currently active window */ > + event.xclient.data.l[3] = event.xclient.data.l[4] = 0; > + > + XSendEvent(FRAME_X_DISPLAY (f), > + DefaultRootWindow (FRAME_X_DISPLAY (f)), > + False, > + SubstructureRedirectMask | SubstructureNotifyMask, > + &event); > + } > + > XRaiseWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f)); > XFlush (FRAME_X_DISPLAY (f)); > UNBLOCK_INPUT; 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? Stefan