add shm_buffer class

This commit is contained in:
Raphael Robatsch 2021-10-20 20:20:27 +02:00
commit d8098fccc0
6 changed files with 109 additions and 25 deletions

16
src/bar.hpp Normal file
View file

@ -0,0 +1,16 @@
// somebar - dwl bar
// See LICENSE file for copyright and license details.
#pragma once
#include <wayland-client.h>
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
#include "common.hpp"
#include "shm_buffer.hpp"
class Bar {
wl_surface *_surface {nullptr};
zwlr_layer_surface_v1 *_layerSurface {nullptr};
ShmBuffer _bufs;
public:
explicit Bar(wl_output *output);
};