-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wayland] usage with WLR layer shell #2142
Comments
Also, I've noticed that there is no created window in sway tree (for the same example without layer surface), but |
Funnily enough I'm trying to get this working too! I don't precisely know your problem, but I'm not sure you're getting the display/surface objects correctly. This works for me: let display = unsafe {
wayland_client::Display::from_external_display(win.wayland_display().unwrap() as *mut _)
};
let surface: WlSurface = unsafe {
wayland_client::Proxy::<WlSurface>::from_c_ptr(win.wayland_surface().unwrap() as *mut wl_proxy).into()
}; I'm stuck on something else (Im trying to use |
You can't use the surface created by winit for layer-shell since it has role assigned to it (it's using xdg-shell). Using winit here isn't an option and using layer surface inside winit also isn't really an option, since layer-shell isn't how default desktop applications should be used (the surface gets destroyed from time to time, meaning you should recreate your entire window and all gl stuff for a new one). If you want to use layer-shell, I'd suggest to use smithay/client-toolkit instead. |
Winit version: 0.26.1
I want to use
surface
, created bywinit
to create layer shell surface bysctk
.But following code produce sigsegv:
Also, if omit layer shell here at all and call
commit
onsurface
noting changes.I think it somehow related with
Display
, because next code also produce sigsegv:So, what am I doing wrong and how I can window
Display
andsurface
?The text was updated successfully, but these errors were encountered: