offscreen rendering

This commit is contained in:
Raphael Robatsch 2021-10-20 21:09:19 +02:00
commit 9b72acd912
8 changed files with 63 additions and 11 deletions

View file

@ -7,6 +7,7 @@
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
#include "common.hpp"
#include "shm_buffer.hpp"
#include "bar_widget.hpp"
class Bar {
static const zwlr_layer_surface_v1_listener _layerSurfaceListener;
@ -14,8 +15,10 @@ class Bar {
wl_surface *_surface {nullptr};
zwlr_layer_surface_v1 *_layerSurface {nullptr};
std::optional<ShmBuffer> _bufs;
BarWidget _widget;
void layerSurfaceConfigure(uint32_t serial, uint32_t width, uint32_t height);
void render();
public:
explicit Bar(const wl_output *output);
~Bar();