baskerville / xdo

Small X utility to perform elementary actions on windows
BSD 2-Clause "Simplified" License
303 stars 18 forks source link

`xdo id -d` doesn't print anything #9

Closed CamilleScholtz closed 8 years ago

CamilleScholtz commented 8 years ago

I'd expect it to print all windows on the current virtual desktop.

baskerville commented 8 years ago

I can't reproduce.

What window manager are you using?

CamilleScholtz commented 8 years ago

openbox

CamilleScholtz commented 8 years ago

Some more info: something like xdo close -d doesn't work either, so it's the -d that's faulty, and not the id.

baskerville commented 8 years ago

-d and -D rely on __NET_WMDESKTOP.

What's the output of xprop -id $(xdo id) _NET_WM_DESKTOP?

CamilleScholtz commented 8 years ago

I created some fork of your xtitle called xdesktop (https://github.com/onodera-punpun/xdesktop), which seems to relay on the same atoms as xdo, and xdesktop works just fine, so I don't know why this happens.

xprop output:

/usr/ports/xorg/xorg-xprop xprop -id (xdo id) _NET_WM_DESKTOP
_NET_WM_DESKTOP(CARDINAL) = 0
# switching desktop now
/usr/ports/xorg/xorg-xprop xprop -id (xdo id) _NET_WM_DESKTOP
_NET_WM_DESKTOP(CARDINAL) = 1

so yeah like you can see, xprop gives correct output as well.

baskerville commented 8 years ago

The problem probably comes from the fact that Openbox is a reparenting WM.

baskerville commented 8 years ago

This should be fixed by 6957a0f.

CamilleScholtz commented 8 years ago

Yup, fixed. Thanks!

Bu the way, could you please tag a new release?

baskerville commented 8 years ago

Done.