From unknown Wed Jun 25 03:52:29 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17537 <17537@debbugs.gnu.org> To: bug#17537 <17537@debbugs.gnu.org> Subject: Status: x-window-property doesn't work for most properties Reply-To: bug#17537 <17537@debbugs.gnu.org> Date: Wed, 25 Jun 2025 10:52:29 +0000 retitle 17537 x-window-property doesn't work for most properties reassign 17537 emacs submitter 17537 Jeremy Maitin-Shepard severity 17537 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 20 22:43:00 2014 Received: (at submit) by debbugs.gnu.org; 21 May 2014 02:43:00 +0000 Received: from localhost ([127.0.0.1]:54781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WmwUd-0005OX-AN for submit@debbugs.gnu.org; Tue, 20 May 2014 22:43:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40185) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wmv4n-0002LQ-8s for submit@debbugs.gnu.org; Tue, 20 May 2014 21:12:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmv4h-0007R1-2s for submit@debbugs.gnu.org; Tue, 20 May 2014 21:12:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmv4g-0007Qw-W7 for submit@debbugs.gnu.org; Tue, 20 May 2014 21:12:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmv4g-00058G-2h for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 21:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmv4d-0007Po-Ib for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 21:12:05 -0400 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:37653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmv4d-0007Pf-Bv for bug-gnu-emacs@gnu.org; Tue, 20 May 2014 21:12:03 -0400 Received: by mail-we0-f171.google.com with SMTP id w62so1331224wes.16 for ; Tue, 20 May 2014 18:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=dyFIjvWG4Rid5yH1Fa8vQLF2L1DWXvhZlQsWXVkXFlw=; b=Fg55JXJctTrIlCVGrq6ynuztoRlNuMseSnn1WdtCYZYiuAUIttLuHl8RIsDoqhIfDP 24UKkAawLE6AoqCnDUURXg66X+euBZTVX2Oe4sp62C1PQnRAZkhDM9Wp+Sl56qitL2YA 9/2XKwCIVLRoIAqk/+/kgfLUlZdL2EYZzUjSpIhs8VGKZYcUziwJFr6pC3V7/dVO4b7w 25R8uprWvQJTtELF8NjETPOygRektrgWrnhtEJA3Llo7SYUzO+/pjdV+kJ/w/h+q0rw0 vbfoIB9u9uI7oxU8iH3GcvQ0TIpmMXLbGTLTkXQ6iWarbRJ+fePi/gdiiXq1APQaUBGR 0DNg== MIME-Version: 1.0 X-Received: by 10.194.120.68 with SMTP id la4mr39841507wjb.40.1400634721737; Tue, 20 May 2014 18:12:01 -0700 (PDT) Received: by 10.217.8.75 with HTTP; Tue, 20 May 2014 18:12:01 -0700 (PDT) Date: Tue, 20 May 2014 18:12:01 -0700 X-Google-Sender-Auth: nL_G0rZ2fWUafUkxGZQ4XuxL5FM Message-ID: Subject: x-window-property doesn't work for most properties From: Jeremy Maitin-Shepard To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e011600980ca15c04f9deaf18 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 20 May 2014 22:42:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e011600980ca15c04f9deaf18 Content-Type: text/plain; charset=UTF-8 x-window-property seems to return nil for most properties. (x-window-property "WM_HINTS") -> returns non-nil (x-window-property "WM_NAME") -> returns nil even though the property is set (and displayed by xprop) (x-window-property "_NET_WM_STATE") -> returns nil even though property is set In fact I haven't found any property I can read other than WM_HINTS. I know this worked with previous version of Emacs. Version: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen --089e011600980ca15c04f9deaf18 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
x-window-property seems to return nil = for most properties.

(x-window-property "WM_HINTS")=C2=A0 = -> returns non-nil

(x-window-property "WM_NAME") = -> returns nil even though the property is set (and displayed by xprop)<= br>
(x-window-property "_NET_WM_STATE") -> returns nil e= ven though property is set

In fact I haven't found any pro= perty I can read other than WM_HINTS.

I know this worked with = previous version of Emacs.

Version:

GNU Emacs 24.3.1 (x8= 6_64-unknown-linux-gnu, GTK+ Version 3.10.7) of 2014-01-28 on var-lib-archb= uild-extra-x86_64-juergen

--089e011600980ca15c04f9deaf18-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 03:27:46 2014 Received: (at 17537) by debbugs.gnu.org; 21 May 2014 07:27:47 +0000 Received: from localhost ([127.0.0.1]:54904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn0wE-0006WF-5n for submit@debbugs.gnu.org; Wed, 21 May 2014 03:27:46 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43931 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn0wB-0006W4-V0 for 17537@debbugs.gnu.org; Wed, 21 May 2014 03:27:44 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8AA2DABF2; Wed, 21 May 2014 07:27:42 +0000 (UTC) From: Andreas Schwab To: Jeremy Maitin-Shepard Subject: Re: bug#17537: x-window-property doesn't work for most properties References: X-Yow: ..Are we having FUN yet...? Date: Wed, 21 May 2014 09:27:42 +0200 In-Reply-To: (Jeremy Maitin-Shepard's message of "Tue, 20 May 2014 18:12:01 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17537 Cc: 17537@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Jeremy Maitin-Shepard writes: > x-window-property seems to return nil for most properties. > > (x-window-property "WM_HINTS") -> returns non-nil > > (x-window-property "WM_NAME") -> returns nil even though the property is > set (and displayed by xprop) > > (x-window-property "_NET_WM_STATE") -> returns nil even though property is > set > > In fact I haven't found any property I can read other than WM_HINTS. You can, if you use the same window id for the target window as xprop (or build emacs without toolkit). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 03:57:36 2014 Received: (at 17537) by debbugs.gnu.org; 21 May 2014 07:57:36 +0000 Received: from localhost ([127.0.0.1]:54921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn1P6-0007St-2r for submit@debbugs.gnu.org; Wed, 21 May 2014 03:57:36 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:49004) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn1P4-0007Sd-EX for 17537@debbugs.gnu.org; Wed, 21 May 2014 03:57:35 -0400 Received: by mail-wi0-f179.google.com with SMTP id bs8so2250925wib.0 for <17537@debbugs.gnu.org>; Wed, 21 May 2014 00:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=obDVyWj2RbVH4sqoULQkPWvhH5stsv0VJOFyq/d/o5s=; b=SadolyHQqImGKO3n7fNhd/k9a6hw2hfp8hnX/wJw9Pj6BRanog64T+yuQFyU0vqg7A D070SVrxFQ6+sAir+GYKNmfQ+a4zUbZEK3V5AoPPRk9+vw/FfuOn9udkd7NJB+wsHcl0 w3RTr6S+CkFBu6ugEsm1uE5R3hGGf3PSsSi1L67W/ExBfVIDYQb79SSXsMdpX868x6cr JIbo3HAaFmiwgDKuZWQ1CjR5m0NHyXw90b5uSI2YM0sfLznUgBKqcluwSLNdCX343Bgh MI9tjHBQKE/1cmdwBHVyLXQPFth9xxYOvxvdc0rzYt6Mt7nUM10GtxXMgV3lWWQJVSPU tc6w== MIME-Version: 1.0 X-Received: by 10.195.13.76 with SMTP id ew12mr476121wjd.80.1400659048366; Wed, 21 May 2014 00:57:28 -0700 (PDT) Received: by 10.217.8.75 with HTTP; Wed, 21 May 2014 00:57:28 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 May 2014 00:57:28 -0700 X-Google-Sender-Auth: Bk4vEqYsPq2OHKWNrAajBsRTOoo Message-ID: Subject: Re: bug#17537: x-window-property doesn't work for most properties From: Jeremy Maitin-Shepard To: Andreas Schwab Content-Type: multipart/alternative; boundary=047d7bd91b540788ba04f9e4592a X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17537 Cc: 17537@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bd91b540788ba04f9e4592a Content-Type: text/plain; charset=UTF-8 Okay. What about making it work when specifying a frame, and building with a toolkit? It seems there is an outer-window-id (which is the top-level window as far as the window manager and other X programs like xprop are concerned), and then there is window-id. While I see now that this can be worked around in elisp, shouldn't x-window-property use outer-window-id when a frame is specified, since that is almost certainly what is desired? On Wed, May 21, 2014 at 12:27 AM, Andreas Schwab wrote: > Jeremy Maitin-Shepard writes: > > > x-window-property seems to return nil for most properties. > > > > (x-window-property "WM_HINTS") -> returns non-nil > > > > (x-window-property "WM_NAME") -> returns nil even though the property is > > set (and displayed by xprop) > > > > (x-window-property "_NET_WM_STATE") -> returns nil even though property > is > > set > > > > In fact I haven't found any property I can read other than WM_HINTS. > > You can, if you use the same window id for the target window as xprop > (or build emacs without toolkit). > > Andreas. > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." > --047d7bd91b540788ba04f9e4592a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Okay.=C2=A0 What about making it work when specifying= a frame, and building with a toolkit?=C2=A0 It seems there is an outer-win= dow-id (which is the top-level window as far as the window manager and othe= r X programs like xprop are concerned), and then there is window-id.=C2=A0 =

While I see now that this can be worked around in elisp, sho= uldn't x-window-property use outer-window-id when a frame is specified,= since that is almost certainly what is desired?


On Wed, May 21, 2014 at 12:27 AM, Andrea= s Schwab <schwab@suse.de> wrote:
Jeremy Maitin-Shepard <jeremy@jer= emyms.com> writes:

> x-window-property seems to return nil for most properties.
>
> (x-window-property "WM_HINTS") =C2=A0-> returns non-nil >
> (x-window-property "WM_NAME") -> returns nil even though = the property is
> set (and displayed by xprop)
>
> (x-window-property "_NET_WM_STATE") -> returns nil even t= hough property is
> set
>
> In fact I haven't found any property I can read other than WM_HINT= S.

You can, if you use the same window id for the target window as xprop
(or build emacs without toolkit).

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@suse.de=
GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE =C2=A01748 E4D4 88E3 0EEA = B9D7
"And now for something completely different."

--047d7bd91b540788ba04f9e4592a-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 11:43:10 2014 Received: (at 17537) by debbugs.gnu.org; 21 May 2014 15:43:10 +0000 Received: from localhost ([127.0.0.1]:55491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn8fd-0007fd-18 for submit@debbugs.gnu.org; Wed, 21 May 2014 11:43:09 -0400 Received: from mailfe09.swip.net ([212.247.155.1]:50098 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wn8fa-0007ez-Eo for 17537@debbugs.gnu.org; Wed, 21 May 2014 11:43:08 -0400 X-T2-Spam-Status: No, hits=0.9 required=5.0 tests=BAYES_50, HTML_MESSAGE Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 329625712; Wed, 21 May 2014 17:42:59 +0200 Content-Type: multipart/alternative; boundary="Apple-Mail=_D515A0E5-16E6-4DE7-9040-DA360678B89B" Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: bug#17537: x-window-property doesn't work for most properties From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Wed, 21 May 2014 17:42:58 +0200 Message-Id: References: To: Jeremy Maitin-Shepard X-Mailer: Apple Mail (2.1874) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 17537 Cc: 17537@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_D515A0E5-16E6-4DE7-9040-DA360678B89B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello. 21 maj 2014 kl. 09:57 skrev Jeremy Maitin-Shepard : > Okay. What about making it work when specifying a frame, and building = with a toolkit? It seems there is an outer-window-id (which is the = top-level window as far as the window manager and other X programs like = xprop are concerned), and then there is window-id. =20 >=20 > While I see now that this can be worked around in elisp, shouldn't = x-window-property use outer-window-id when a frame is specified, since = that is almost certainly what is desired? It sounds reasonable. gs.el would have to be changed also. In theory it could break other lisp code, but we don't know. Perhaps a new lisp wrapper is better. The doc for x-window-property = could mention it. Another alternative is that x-window-property tries outer-id if inner-id = gives nothing. Jan D. >=20 >=20 > On Wed, May 21, 2014 at 12:27 AM, Andreas Schwab = wrote: > Jeremy Maitin-Shepard writes: >=20 > > x-window-property seems to return nil for most properties. > > > > (x-window-property "WM_HINTS") -> returns non-nil > > > > (x-window-property "WM_NAME") -> returns nil even though the = property is > > set (and displayed by xprop) > > > > (x-window-property "_NET_WM_STATE") -> returns nil even though = property is > > set > > > > In fact I haven't found any property I can read other than WM_HINTS. >=20 > You can, if you use the same window id for the target window as xprop > (or build emacs without toolkit). >=20 > Andreas. >=20 > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA = B9D7 > "And now for something completely different." >=20 --Apple-Mail=_D515A0E5-16E6-4DE7-9040-DA360678B89B Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Hello.

21 maj 2014 kl. 09:57 skrev Jeremy Maitin-Shepard <jeremy@jeremyms.com>:

Okay.  What about making it work when specifying a frame, and building with a toolkit?  It seems there is an outer-window-id (which is the top-level window as far as the window manager and other X programs like xprop are concerned), and then there is window-id. 

While I see now that this can be worked around in elisp, shouldn't x-window-property use outer-window-id when a frame is specified, since that is almost certainly what is desired?

It sounds reasonable.  gs.el would have to be changed also.
In theory it could break other lisp code, but we don't know.
Perhaps a new lisp wrapper is better.  The doc for x-window-property could mention it.

Another alternative is that x-window-property tries outer-id if inner-id gives nothing.

Jan D.



On Wed, May 21, 2014 at 12:27 AM, Andreas Schwab <schwab@suse.de> wrote:
Jeremy Maitin-Shepard <jeremy@jeremyms.com> writes:

> x-window-property seems to return nil for most properties.
>
> (x-window-property "WM_HINTS")  -> returns non-nil
>
> (x-window-property "WM_NAME") -> returns nil even though the property is
> set (and displayed by xprop)
>
> (x-window-property "_NET_WM_STATE") -> returns nil even though property is
> set
>
> In fact I haven't found any property I can read other than WM_HINTS.

You can, if you use the same window id for the target window as xprop
(or build emacs without toolkit).

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


--Apple-Mail=_D515A0E5-16E6-4DE7-9040-DA360678B89B-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 24 04:42:45 2014 Received: (at 17537-done) by debbugs.gnu.org; 24 May 2014 08:42:45 +0000 Received: from localhost ([127.0.0.1]:58605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wo7XQ-0003mi-Pv for submit@debbugs.gnu.org; Sat, 24 May 2014 04:42:45 -0400 Received: from mailfe01.swip.net ([212.247.154.1]:33602 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wo7XM-0003mJ-9Y for 17537-done@debbugs.gnu.org; Sat, 24 May 2014 04:42:41 -0400 X-T2-Spam-Status: No, hits=0.0 required=5.0 Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 506857073; Sat, 24 May 2014 10:42:32 +0200 Message-ID: <53805B78.20501@swipnet.se> Date: Sat, 24 May 2014 10:42:32 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Jeremy Maitin-Shepard Subject: Re: bug#17537: x-window-property doesn't work for most properties References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 17537-done Cc: 17537-done@debbugs.gnu.org, Andreas Schwab X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi. 2014-05-21 17:42, Jan Djärv skrev: > > Another alternative is that x-window-property tries outer-id if inner-id gives > nothing. I implemented this in the trunk, closing bug. Jan D. From unknown Wed Jun 25 03:52:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 21 Jun 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator