From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: Re: raise-frame doesn't work in Fedora Core 4 Date: Tue, 31 Oct 2006 20:57:59 +0900 Organization: Emacsen advocacy group 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 1162295925 8225 80.91.229.2 (31 Oct 2006 11:58:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 11:58:45 +0000 (UTC) Cc: Masatake YAMATO , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 31 12:58:40 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 1GesGG-0001ut-Bz for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 12:58:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GesGF-0006uu-Qo for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 06:58:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GesG0-0006tc-B8 for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:58:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GesFv-0006qM-Lf for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:58:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GesFv-0006q7-GU for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:58:11 -0500 Original-Received: from [216.246.45.90] (helo=orlando.hostforweb.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GesFv-0003aV-J0 for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:58:11 -0500 Original-Received: from [216.246.45.90] (helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.52) id 1GesFq-0000Oi-Gh; Tue, 31 Oct 2006 05:58:07 -0600 Original-To: Kenichi Handa X-Hashcash: 1:20:061031:handa@m17n.org::OcKPSWiT+GpZ+S+G:00005HS X-Hashcash: 1:20:061031:jet@gyve.org::AtG6fo//PC6CnkxD:000003LOQ X-Hashcash: 1:20:061031:emacs-devel@gnu.org::lQyXI/o9U5fkFP4w:0000000000000000000000000000000000000000002Ol0 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:3IiX4il4m9LGvrSwy0Zh92PfNqE= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:61472 Archived-At: Thanks Handa-san for following this up. >>>>> In Kenichi Handa wrote: > I've just got a report saying that the problem reported here: > http://www.archivum.info/emacs-devel@gnu.org/2005-06/msg01570.html > is not yet fixed. > The contents is this: >> I did them in the Fedora Core 4 platform. Since `raise-frame' >> does nothing in this platform,... It does nothing also in Fedora Core 5. 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: *** 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;