[CLOSED] Provide hooks for overriding default behavior
Closed this issue · 7 comments
Issue by Cloudef
Friday Feb 27, 2015 at 13:21 GMT
Originally opened as Cloudef/wlc#7
Most useful drawing for example view borders, background, or any other custom behavior where it makes sense.
Comment by SirCmpwn
Thursday Aug 06, 2015 at 03:07 GMT
👍
Would particularly like to override borders. I would say that the things you mentioned (border, background) are both probably the domain of the consumer of this library, and don't really belong in the library itself.
Edit: that's not to say that wlc shouldn't provide facilities to the consumer for actually doing those things, I think that's fine and actually quite nice. But providing a default behaviour is probably not great.
Comment by Cloudef
Thursday Aug 06, 2015 at 14:40 GMT
Background most likely moves to be a wayland client. Drawing borders, focus or other view related things and effects though makes sense inside compositor. Wlc will not provide facilities for drawing itself, you must choose library yourself for that.
Comment by SirCmpwn
Thursday Aug 06, 2015 at 14:41 GMT
That seems fine. I'm just looking for a way to get rid of the default borders and close/max/min buttons and so on. The background as a wayland client makes sense, too.
Comment by Cloudef
Thursday Aug 06, 2015 at 15:05 GMT
For those, you can't get rid of those until somebody stands up with a protocol extension for that. Client draws those borders, and currently there is no way to communicate between compositor/client to not do that.