-
Notifications
You must be signed in to change notification settings - Fork 58
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
How does the wlc_view get created? #238
Comments
wlc_view is created when role is assigned to surface. Wlc only creates views for roles it supports by default and that is xdg_surface and wl_surface. If you want custom roles you need to extend wlc, see wlc-wayland.h. You can also turn surfaces into views without roles using https://github.com/Cloudef/wlc/blob/master/include/wlc/wlc-wayland.h#L40 |
So are |
No, those are supposed to be used by GUI programs. https://github.com/Cloudef/wlc/blob/master/tests/wl-extension.c this can give you idea how to do background. |
okay, thanks, I tried, |
Hi all, I want to know how/when does wlc generated
wlc_view
for a awl_surface
Because I want to write a custom interface for a background and other things. Is awlc_view
created at some where likewl_surface_attach
callback? I checked the code insrc/resources/types/surface.c
, but it seems thatwlc_view
is not create there.Can anybody help?
The text was updated successfully, but these errors were encountered: