Skip to content

Is it possible to resize a client from the compositor? #90

Discussion options

You must be logged in to vote

Hi! I noticed you started developing a compositor some time ago and now you're creating bindings for Nim. That's very cool!

A surface on its own only contains a buffer (texture) and some properties like scaling factor, transform, etc. What gives a surface additional "functionality" is a role, which is assigned by the client. Without a role, surfaces shouldn't be displayed (i.e., LSurface::mapped() returns false). When a client assigns a role to a surface, the LSurface::roleChanged() event is triggered. You can access the role with LSurface::role() or with role-specific functions. For example, LSurface::toplevel() returns a pointer to an LToplevelRole, or nullptr if the surface has another…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by xTrayambak
Comment options

You must be logged in to vote
1 reply
@ehopperdietzel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants