* bug#17537: x-window-property doesn't work for most properties
@ 2014-05-21 1:12 Jeremy Maitin-Shepard
2014-05-21 7:27 ` Andreas Schwab
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Maitin-Shepard @ 2014-05-21 1:12 UTC (permalink / raw)
To: 17537
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 791 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#17537: x-window-property doesn't work for most properties
2014-05-21 1:12 bug#17537: x-window-property doesn't work for most properties Jeremy Maitin-Shepard
@ 2014-05-21 7:27 ` Andreas Schwab
2014-05-21 7:57 ` Jeremy Maitin-Shepard
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2014-05-21 7:27 UTC (permalink / raw)
To: Jeremy Maitin-Shepard; +Cc: 17537
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."
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#17537: x-window-property doesn't work for most properties
2014-05-21 7:27 ` Andreas Schwab
@ 2014-05-21 7:57 ` Jeremy Maitin-Shepard
2014-05-21 15:42 ` Jan Djärv
0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Maitin-Shepard @ 2014-05-21 7:57 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 17537
[-- Attachment #1: Type: text/plain, Size: 1280 bytes --]
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@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."
>
[-- Attachment #2: Type: text/html, Size: 1916 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#17537: x-window-property doesn't work for most properties
2014-05-21 7:57 ` Jeremy Maitin-Shepard
@ 2014-05-21 15:42 ` Jan Djärv
2014-05-24 8:42 ` Jan Djärv
0 siblings, 1 reply; 5+ messages in thread
From: Jan Djärv @ 2014-05-21 15:42 UTC (permalink / raw)
To: Jeremy Maitin-Shepard; +Cc: 17537, Andreas Schwab
[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]
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."
>
[-- Attachment #2: Type: text/html, Size: 2816 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#17537: x-window-property doesn't work for most properties
2014-05-21 15:42 ` Jan Djärv
@ 2014-05-24 8:42 ` Jan Djärv
0 siblings, 0 replies; 5+ messages in thread
From: Jan Djärv @ 2014-05-24 8:42 UTC (permalink / raw)
To: Jeremy Maitin-Shepard; +Cc: 17537-done, Andreas Schwab
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-24 8:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-21 1:12 bug#17537: x-window-property doesn't work for most properties Jeremy Maitin-Shepard
2014-05-21 7:27 ` Andreas Schwab
2014-05-21 7:57 ` Jeremy Maitin-Shepard
2014-05-21 15:42 ` Jan Djärv
2014-05-24 8:42 ` Jan Djärv
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.