From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: raise-frame doesn't work in Fedora Core 4 Date: Fri, 03 Nov 2006 09:59:37 +0100 Message-ID: <454B04F9.6030806@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162544450 15527 80.91.229.2 (3 Nov 2006 09:00:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2006 09:00:50 +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 Fri Nov 03 10:00: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 1Gfuuc-0006sN-Cj for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2006 10:00:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gfuub-0005En-OW for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2006 04:00:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfuuK-00059u-7L for emacs-devel@gnu.org; Fri, 03 Nov 2006 04:00:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfuuH-00058O-MF for emacs-devel@gnu.org; Fri, 03 Nov 2006 04:00:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfuuH-00058A-2U for emacs-devel@gnu.org; Fri, 03 Nov 2006 04:00:09 -0500 Original-Received: from [81.228.9.180] (helo=av6-2-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfuuG-0007Qq-5d for emacs-devel@gnu.org; Fri, 03 Nov 2006 04:00:08 -0500 Original-Received: by av6-2-sn3.vrr.skanova.net (Postfix, from userid 502) id A39C4380C0; Fri, 3 Nov 2006 10:00:07 +0100 (CET) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av6-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 915B637EC4; Fri, 3 Nov 2006 10:00:07 +0100 (CET) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 6C55337EAD; Fri, 3 Nov 2006 10:00:07 +0100 (CET) User-Agent: Thunderbird 1.5.0.7 (X11/20060918) Original-To: Katsumi Yamaoka 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:61674 Archived-At: Katsumi Yamaoka skrev: > Masatake YAMATO once tried to fix this and offered a patch to me > on 9 Sep 2005. I tried it with Emacs CVS then and confirmed it > enabled `raise-frame' to perform. I would very much appreciate > someone looking into it. Here it is: I've checked in a slightly different patch that does the same thing. Please try it. Jan D. > > *** xterm.c Sun Aug 28 04:13:33 +0900 1.873 > --- xterm.c Fri Sep 09 02:33:55 +0900 > *************** > *** 8492,8497 **** > --- 8492,8524 ---- > if (f->async_visible) > { > BLOCK_INPUT; > + > + { > + /* 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; > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel