Skip to content

Commit

Permalink
all: chase hyprland
Browse files Browse the repository at this point in the history
fixes #66 fixes #67
  • Loading branch information
vaxerski committed Dec 29, 2023
1 parent a48f151 commit 61edcb9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions borders-plus-plus/borderDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions borders-plus-plus/borderDeco.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class CBordersPlusPlus : public IHyprWindowDecoration {

virtual eDecorationLayer getDecorationLayer();

virtual std::string getDisplayName();

private:
SWindowDecorationExtents m_seExtents;

Expand Down
4 changes: 4 additions & 0 deletions hyprbars/barDeco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions hyprbars/barDeco.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class CHyprBar : public IHyprWindowDecoration {

bool m_bButtonsDirty = true;

virtual std::string getDisplayName();

private:
SWindowDecorationExtents m_seExtents;

Expand Down

0 comments on commit 61edcb9

Please sign in to comment.