all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Weirdness with Emacs' X window id
Date: Mon, 07 Feb 2005 21:27:01 +0100	[thread overview]
Message-ID: <4207CF15.5060203@swipnet.se> (raw)
In-Reply-To: <cu8g28$ia3$1@sea.gmane.org>

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.

  parent reply	other threads:[~2005-02-07 20:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-07 19:37 Weirdness with Emacs' X window id Peter Heslin
2005-02-07 20:14 ` Lennart Borgman
2005-02-07 20:27 ` Jan D. [this message]
2005-02-07 21:03 ` Robert J. Chassell
2005-02-07 21:25   ` Jan D.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4207CF15.5060203@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.