From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Weirdness with Emacs' X window id Date: Mon, 07 Feb 2005 21:27:01 +0100 Message-ID: <4207CF15.5060203@swipnet.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107808290 30087 80.91.229.2 (7 Feb 2005 20:31:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2005 20:31:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 07 21:31:29 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1CyFXY-0002ZM-1y for ged-emacs-devel@m.gmane.org; Mon, 07 Feb 2005 21:31:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyFlj-0001hn-Qx for ged-emacs-devel@m.gmane.org; Mon, 07 Feb 2005 15:46:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CyFi7-0000PQ-Ja for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:42:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CyFi3-0000NA-2m for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:42:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CyFi2-0000Lt-O8 for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:42:14 -0500 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CyFTh-0006jU-5u for emacs-devel@gnu.org; Mon, 07 Feb 2005 15:27:25 -0500 Original-Received: from coolsville.localdomain ([83.226.180.210] [83.226.180.210]) by mxfep01.bredband.com with ESMTP id <20050207202724.SALF23903.mxfep01.bredband.com@coolsville.localdomain>; Mon, 7 Feb 2005 21:27:24 +0100 User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: Peter Heslin 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33037 Peter Heslin wrote: >In Debian GNU/Linux: > >If I do emacs -q --no-site-file with a month-old CVS checkout, and >then M-x eshell: > >~ $ xdpyinfo |grep -i focus >focus: window 0x1400015, revert to Parent >~ $ wmctrl -l |grep -i emacs >0x01400014 1 aideen Emacs *eshell* > >where wmctrl is a command-line program and the -l switch makes it list >all current windows. Note that xdpyinfo and wmctrl disagree as to >what should be the ID number for the single Emacs frame. One says a >number ending in 14, the other in 15. > >wmctrl -l does not know of any window with the ID 0x1400015. > >Is this expected? I don't know anything about these IDs -- I'm just >trying to write a script to manipulate windows on my desktop, and >it's quite difficult with this ID schizophrenia. > >Emacs is the only application I run that behaves like this. > >If it's not expected behavior, then it could be a bug in wmctrl, >xdpyinfo, my X server, Emacs, or who knows where, so it would be >interesting to see if anyone else sees this. > It is normal. The window manager may set windows between the Emacs window and the root window. Also, there is a special window called the client leader window used for session handling. I don't know which window wmctrl returns, it can be any of these. To see all windows Emacs has, use: % xwininfo -tree -id 0x1400015 (or 14). Jan D.