waylandpp icon indicating copy to clipboard operation
waylandpp copied to clipboard

Examples fail at runtime: interface 'wl_surface' has no event 2

Open skligys opened this issue 11 months ago • 3 comments

After upgrading to Sway 1.9 a few days ago, examples started failing at runtime. They used to run fine before the upgrade.

# ./shm
interface 'wl_surface' has no event 2
terminate called after throwing an instance of 'std::system_error'
  what():  wl_display_dispatch: No such file or directory
Aborted (core dumped)
# ./egl
interface 'wl_surface' has no event 2
terminate called after throwing an instance of 'std::system_error'
  what():  wl_display_dispatch: Resource temporarily unavailable
Aborted (core dumped)

skligys avatar Feb 28 '24 17:02 skligys

This seems to be directly related to this issue

https://github.com/NilsBrause/waylandpp/issues/77

By putting in a new wayland.xml and xdg-shell.xml and recompiling, everything works.(At least on my arch box)

wilypomegranate avatar Mar 20 '24 02:03 wilypomegranate

Thanks, building from your branch fixed it: https://github.com/wilypomegranate/waylandpp

It looks that the owner is not approving any PRs?

skligys avatar Mar 20 '24 18:03 skligys

After a little investigation and reading wayland docs, I don't think binding to the registry should use what the server sends back since this is the maximum version that the server supports. I'd think instead that clients should use what version they know about and decide on whether to continue.

wilypomegranate avatar Mar 22 '24 03:03 wilypomegranate