[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs's set-frame-size can not work well with gnome-shell?
From: |
Adrián Medraño Calvo |
Subject: |
Re: Emacs's set-frame-size can not work well with gnome-shell? |
Date: |
Wed, 8 Apr 2020 11:03:13 +0200 |
(Please correct mail address in CC to this one in further responses.)
> On 8. Apr 2020, at 10:45, martin rudalics <address@hidden> wrote:
>
> > Have you tried the _NET_SUPPORTING_WM_CHECK window’s _NET_WM_NAME?
>
> I'm struggling with that for quite some time already. wmctrl uses it
> but I never got anything from a call like
>
> rc = XGetWindowProperty (dpy, dpyinfo->root_window,
> XInternAtom (dpy, "_NET_WM_NAME", False),
> 0, max_len, False, XA_STRING,
> /** XInternAtom (dpy, "UTF8_STRING", False), **/
> &actual_type, &actual_format, &actual_size,
> &bytes_remaining, &name);
>
> It reports success but name remains NULL. If you have any clues about
> what I'm doing wrong I'd be all ears.
>
> martin
>
This works for me:
~~~
(let ((id (x-window-property "_NET_SUPPORTING_WM_CHECK" nil "WINDOW" 0 nil t)))
(x-window-property "_NET_WM_NAME" nil "UTF8_STRING" id nil))
~~~
I can’t help translating to Xlib API, but it’s there in Emacs C code.
You can also check with xwininfo and xprop:
~~~
$ xwininfo -root
xwininfo: Window id: 0x111 (the root window) (has no name)
[…]
$ xprop -id 0x111
[…]
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x600002
[…]
$ xprop -id 0x600002
_NET_WM_NAME(UTF8_STRING) = "whatever"
~~~
Hope it helps,
Adrián.
- Re: Emacs's set-frame-size can not work well with gnome-shell?, (continued)
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/04/07
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Robert Pluim, 2020/04/07
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/04/07
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Robert Pluim, 2020/04/07
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/04/07
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Robert Pluim, 2020/04/08
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/04/08
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Robert Pluim, 2020/04/08
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Support, 2020/04/08
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/04/08
- Re: Emacs's set-frame-size can not work well with gnome-shell?,
Adrián Medraño Calvo <=
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/04/08
Re: Emacs's set-frame-size can not work well with gnome-shell?, Andreas Schwab, 2020/04/12