5

I'm trying to get the window list in a Xvfb server in a debian squeeze machine. What I'm doing is:

$ Xvfb :2&
$ DISPLAY=:2; wmctrl -l

But I'm getting this error:

Cannot get client list properties. (_NET_CLIENT_LIST or _WIN_CLIENT_LIST)

Is this normal or am I missing something?

Thanks!!

sgimeno
  • 81
  • 2
  • 6
  • what is result of `DISPLAY=:2 xwininfo -tree -root`? – Andrey Sidorov Sep 03 '12 at 20:32
  • The result it `xwininfo: Window id: 0xe8 (the root window) (has no name) Root window id: 0xe8 (the root window) (has no name) Parent window id: 0x0 (none) 0 children.` – sgimeno Sep 04 '12 at 07:12
  • I'm also getting this message when launching Xvfb: `SELinux: Disabled on system, not enabling in X server` – sgimeno Sep 04 '12 at 07:14
  • @AndreySidorov thanks for the answer!!. Your command works. And now I understand that wmctrl -l still doesn't work because I haven't launched a window manager in :2. Once I launch it, there's support for _NET_CLIENT_LIST – sgimeno Sep 04 '12 at 07:56
  • @sgimeno: nice that you got it working. I run into the same problem. Could you elaborate on how you launched which window manager? – richelbilderbeek May 06 '16 at 10:09
  • @richelbilderbeek Sure. _NET_CLIENT_LIST or _WIN_CLIENT_LIST properties are set by windows managers in the root window to keep the list of windows managed by the window manager. So in my case the problem was that there was no window manager launched in the DISPLAY :2. To launch it, you can do (for fluxbox for example): `DISPLAY=:2; fluxbox`. I hope this helps. – sgimeno May 09 '16 at 08:25

1 Answers1

1

I had similar problem. Im my case xfce-panel was not configured. Finally I executed:

sudo chmod -x /usr/bin/xfce4-panel

This solved the problem (I did not need this panel). This is a dirty hack. The proper approach is configuring the panel.

gbajson
  • 1,531
  • 13
  • 32