mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-22 02:35:57 +01:00
parent
f62f3b216e
commit
47a1acd6ba
4 changed files with 12 additions and 0 deletions
|
@ -56,6 +56,10 @@ eDecorationLayer CBordersPlusPlus::getDecorationLayer() {
|
|||
return DECORATION_LAYER_OVER;
|
||||
}
|
||||
|
||||
std::string CBordersPlusPlus::getDisplayName() {
|
||||
return "Borders++";
|
||||
}
|
||||
|
||||
void CBordersPlusPlus::draw(CMonitor* pMonitor, float a, const Vector2D& offset) {
|
||||
if (!g_pCompositor->windowValidMapped(m_pWindow))
|
||||
return;
|
||||
|
|
|
@ -25,6 +25,8 @@ class CBordersPlusPlus : public IHyprWindowDecoration {
|
|||
|
||||
virtual eDecorationLayer getDecorationLayer();
|
||||
|
||||
virtual std::string getDisplayName();
|
||||
|
||||
private:
|
||||
SWindowDecorationExtents m_seExtents;
|
||||
|
||||
|
|
|
@ -46,6 +46,10 @@ void CHyprBar::onPositioningReply(const SDecorationPositioningReply& reply) {
|
|||
m_bAssignedBox = reply.assignedGeometry;
|
||||
}
|
||||
|
||||
std::string CHyprBar::getDisplayName() {
|
||||
return "Hyprbar";
|
||||
}
|
||||
|
||||
void CHyprBar::onMouseDown(SCallbackInfo& info, wlr_pointer_button_event* e) {
|
||||
if (m_pWindow != g_pCompositor->m_pLastWindow)
|
||||
return;
|
||||
|
|
|
@ -29,6 +29,8 @@ class CHyprBar : public IHyprWindowDecoration {
|
|||
|
||||
bool m_bButtonsDirty = true;
|
||||
|
||||
virtual std::string getDisplayName();
|
||||
|
||||
private:
|
||||
SWindowDecorationExtents m_seExtents;
|
||||
|
||||
|
|
Loading…
Reference in a new issue