stumpwm / mahogany

A stumpwm like Wayland compositor
GNU General Public License v2.0
241 stars 14 forks source link

Design rendering interface for C backend #47

Open sdilts opened 1 year ago

sdilts commented 1 year ago

There needs to be some kind of interface in the C backend that enables the lisp code to tell it what to render. The two things we should focus on supporting right now is rendering surfaces via wlroots' scene graph API and drawing window borders for focused windows / frames.

sdilts commented 1 year ago

The scene graph API has the ability to render wlr_buffers and normal rectangles, so rendering borders can just be done as part of the scene graph manipulation. Although it's more complex than we need right now, Sway's (yet to be merged) usage of this API should give us some hints.