hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
306 stars 48 forks source link

Restore tokens don't preserve the exact window in case of popups #264

Closed diniamo closed 2 months ago

diniamo commented 2 months ago

The title is self-explanatory. What ends up happening instead, is that the main window is shared. For example, this can happen in libreoffice.

Ref https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/262#issuecomment-2367309289 and https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/262#issuecomment-2368469129

vaxerski commented 2 months ago

worth noting if you close the selected window (reboots count) it will restore the main one.

diniamo commented 2 months ago

Sounds sensible

shogeki commented 2 months ago

region selecting is still streaming the whole workspace unless I disable the restore token.

diniamo commented 2 months ago

I can confirm, the fix for this issue works, however region select is still broken with session restore.

Also is it possible to enable session restore by default? That would be very handy.

shogeki commented 2 months ago

you can do that in ~/.config/hypr/xdph.conf screencopy { allow_token_by_default = true }

diniamo commented 2 months ago

Where is that documented?

Found it.