GNU bug report logs - #17537
x-window-property doesn't work for most properties

Previous Next

Package: emacs;

Reported by: Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>

Date: Wed, 21 May 2014 02:43:02 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17537 in the body.
You can then email your comments to 17537 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17537; Package emacs. (Wed, 21 May 2014 02:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 May 2014 02:43:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>
To: bug-gnu-emacs <at> gnu.org
Subject: x-window-property doesn't work for most properties
Date: Tue, 20 May 2014 18:12:01 -0700
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17537; Package emacs. (Wed, 21 May 2014 07:28:01 GMT) Full text and rfc822 format available.

Message #8 received at 17537 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>
Cc: 17537 <at> debbugs.gnu.org
Subject: Re: bug#17537: x-window-property doesn't work for most properties
Date: Wed, 21 May 2014 09:27:42 +0200
Jeremy Maitin-Shepard <jeremy <at> 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 <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17537; Package emacs. (Wed, 21 May 2014 07:58:01 GMT) Full text and rfc822 format available.

Message #11 received at 17537 <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>
To: Andreas Schwab <schwab <at> suse.de>
Cc: 17537 <at> debbugs.gnu.org
Subject: Re: bug#17537: x-window-property doesn't work for most properties
Date: Wed, 21 May 2014 00:57:28 -0700
[Message part 1 (text/plain, inline)]
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 <schwab <at> suse.de> wrote:

> Jeremy Maitin-Shepard <jeremy <at> 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 <at> suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17537; Package emacs. (Wed, 21 May 2014 15:44:02 GMT) Full text and rfc822 format available.

Message #14 received at 17537 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>
Cc: 17537 <at> debbugs.gnu.org, Andreas Schwab <schwab <at> suse.de>
Subject: Re: bug#17537: x-window-property doesn't work for most properties
Date: Wed, 21 May 2014 17:42:58 +0200
[Message part 1 (text/plain, inline)]
Hello.

21 maj 2014 kl. 09:57 skrev Jeremy Maitin-Shepard <jeremy <at> 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 <at> suse.de> wrote:
> Jeremy Maitin-Shepard <jeremy <at> 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 <at> suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
> 

[Message part 2 (text/html, inline)]

Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Sat, 24 May 2014 08:43:02 GMT) Full text and rfc822 format available.

Notification sent to Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>:
bug acknowledged by developer. (Sat, 24 May 2014 08:43:02 GMT) Full text and rfc822 format available.

Message #19 received at 17537-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Jeremy Maitin-Shepard <jeremy <at> jeremyms.com>
Cc: 17537-done <at> debbugs.gnu.org, Andreas Schwab <schwab <at> suse.de>
Subject: Re: bug#17537: x-window-property doesn't work for most properties
Date: Sat, 24 May 2014 10:42:32 +0200
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.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 21 Jun 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.