offscreen rendering
This commit is contained in:
parent
be9f2f9903
commit
9b72acd912
8 changed files with 63 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue