Re: Basic API usage

2020-09-12 Thread Jan Bruns
Simon Ser: > Hi, > wl_display version is hardcoded to 1, because the client retrieves it > before version negociation can happen. > wl_registry_bind lets the client specify the version they want to bind > to. > wl_surface inherits its version from wl_compositor. Yes, that's what happens for un

Re: Basic API usage

2020-09-12 Thread Simon Ser
Hi, On Saturday, September 12, 2020 1:21 PM, Jan Bruns wrote: > > How to tell libwayland to not attempt to call nonexisting callbacks? > > Well, libwayland of course has some work around this issue (there's a > versioned mashalling function that should apply the version to the > new-id arg). > >

Re: Basic API usage

2020-09-12 Thread Jan Bruns
Jan Bruns wrote: > I've just stumbled upon a more serious question: > > registry.bind() doesn't have a version parameter, and also wl_proxy_add_listener(). > > Doesn't this mean that an App that doesn't know the latest version of an interface cannot use libwayland anymore? > > How to tell libw