bar: add bar->output_name(), returns the name of the output we’re on

This commit is contained in:
Daniel Eklöf 2021-08-02 19:29:52 +02:00
parent 96a35e5304
commit 74016d7d33
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 29 additions and 0 deletions

View file

@ -462,6 +462,13 @@ set_cursor(struct bar *_bar, const char *cursor)
backend->conn, backend->win, XCB_CW_CURSOR, &backend->cursor);
}
static const char *
output_name(const struct bar *_bar)
{
/* Not implemented */
return NULL;
}
const struct backend xcb_backend_iface = {
.setup = &setup,
.cleanup = &cleanup,
@ -469,4 +476,5 @@ const struct backend xcb_backend_iface = {
.commit = &commit,
.refresh = &refresh,
.set_cursor = &set_cursor,
.output_name = &output_name,
};