Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: Allow Tabs to work under wayland #109

Closed
frostworx opened this issue Oct 26, 2020 · 5 comments
Closed

Feature Request: Allow Tabs to work under wayland #109

frostworx opened this issue Oct 26, 2020 · 5 comments

Comments

@frostworx
Copy link

frostworx commented Oct 26, 2020

Hello, @v1cont!
after a long time I tried wayland again yesterday (IMHO it is not as urgent to deprecate X as it was provocatively claimed these days though) and noticed that yad Tabs do not work under wayland.
Instead every Tab opens its own requester which breaks the whole functionality.
Is it possible that you could add that function to yad (TBH I have no clue how big this issue is 'under the hood')?

Reproducable with this command:
yad --plug=12345 --tabnum=1 --text="first tab with text" &> res1 &yad --plug=12345 --tabnum=2 --text="second tab" --entry &> res2 &yad --notebook --key=12345 --tab="Tab 1" --tab="Tab 2"

directly copy/pasted from the smokey01 examples here

Edit: just found that there's also a warning on stdout:
WARNING: This mode not supported outside X11
(which has 1 (one!) google hit here: https://github.com/v1cont/yad/blob/master/po/uk.po )

@sarether
Copy link

Have you tried running YAD with "GDK_BACKEND=x11"?
GDK_BACKEND=x11 yad

@frostworx
Copy link
Author

Thanks, would have been a nice workaround indeed, but with x11 only the seconds tab opens.

@v1cont
Copy link
Owner

v1cont commented Oct 31, 2020

yad uses xembed for notebook and paned dialogs. this protocol is not available in native wayland

@frostworx
Copy link
Author

Ah I see. Thanks for the explanation.

@frostworx
Copy link
Author

I removed all tabs for the next release of my program and it works correctly under wayland now. So closing here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants