Update status from pipe
This commit is contained in:
parent
9c08a11b32
commit
58d004ec59
3 changed files with 34 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ struct Tag {
|
|||
|
||||
class Bar {
|
||||
static const zwlr_layer_surface_v1_listener _layerSurfaceListener;
|
||||
static const wl_callback_listener _frameListener;
|
||||
|
||||
wl_surface *_surface {nullptr};
|
||||
zwlr_layer_surface_v1 *_layerSurface {nullptr};
|
||||
|
|
@ -27,6 +28,7 @@ class Bar {
|
|||
QFontMetrics _fontMetrics;
|
||||
std::optional<ShmBuffer> _bufs;
|
||||
int _textY, _x;
|
||||
bool _invalid {false};
|
||||
|
||||
std::vector<Tag> _tags;
|
||||
QString _windowTitle;
|
||||
|
|
@ -39,7 +41,9 @@ class Bar {
|
|||
void renderText(const QString &text);
|
||||
int textWidth(const QString &text);
|
||||
void setColorScheme(const ColorScheme &scheme);
|
||||
void invalidate();
|
||||
public:
|
||||
explicit Bar(const wl_output *output);
|
||||
void setStatus(const QString &status);
|
||||
~Bar();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue