yshui / picom-xrdesktop-companion

picom's companion program to bring your desktop to XR
22 stars 4 forks source link

No windows appear in xrdesktop in LXDE #3

Open happysmash27 opened 2 years ago

happysmash27 commented 2 years ago

When launching SteamVR and then ./target/release/picom-xrdesktop-companion, no windows appear. Laser dots exist and the menu can be opened and interacted with, but nothing happens when any of the buttons are pressed other than them being indicated as being pressed and sometimes changing icons. My log, after opening and closing the menu a bunch of times and trying to see if the buttons do anything, is as follows:

 % ./target/release/picom-xrdesktop-companion
ClientMode::Overlay
Load manifest path /home/happysmash27/.cache/xrdesktop.openvr/actions.json
Added controller for origin Right Hand Vive Controller Raw for action /actions/wm/in/hand_pose
Added controller for origin Left Hand Vive Controller Raw for action /actions/wm/in/hand_pose
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Window 0 does not exist!
Window 0 does not exist!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Window 0 does not exist!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
Initializing buttons!
Destroying buttons!
^C

I believe this is a bug but am not quite sure. Maybe I am just doing something wrong and need to do something to make the windows appear. Launching a new Alacritty does not appear to make them appear in xrdesktop. In the process of debugging I also opened up an instance of Firefox which did not appear either, as well as xrd-settings.

I am using LXDE and have Picom as the first auto-launch program in ~/.config/lxsession/LXDE/autostart, as: @picom --dbus -b

Running: dpy=$(echo -n "$DISPLAY" | tr -c '[:alnum:]' _)

And then:

service="com.github.chjj.compton.${dpy}"
interface='com.github.chjj.compton'
object='/com/github/chjj/compton'
type_win='uint32'
type_enum='uint32'

And then: dbus-send --print-reply --dest="$service" "$object" "${interface}.list_win"

Correctly lists an array of windows as uint32.

So it looks like everything is working theoretically, yet, no windows actually appear.

happysmash27 commented 2 years ago

Running examples/client from xrdesktop seems to work so I think this indeed is most likely an issue with picom-xrdesktop-companion or the way I set it up.

yshui commented 2 years ago

Did you use the git version of picom? As stated in the README:

For now, only the latest git version of picom is supported.

Da-Boom commented 2 years ago

if youre running picom on arch - use picom-git from the AUR

Also it appears this issue is older than the issue i created and solved (issue #5)

try running git pull to download the latest code before rebuilding the software