all: chase hyprland

fixes #66 fixes #67
This commit is contained in:
Vaxry 2023-12-29 10:31:24 +01:00 committed by Mihai Fufezan
parent f62f3b216e
commit 47a1acd6ba
No known key found for this signature in database
4 changed files with 12 additions and 0 deletions

View file

@ -56,6 +56,10 @@ eDecorationLayer CBordersPlusPlus::getDecorationLayer() {
return DECORATION_LAYER_OVER; return DECORATION_LAYER_OVER;
} }
std::string CBordersPlusPlus::getDisplayName() {
return "Borders++";
}
void CBordersPlusPlus::draw(CMonitor* pMonitor, float a, const Vector2D& offset) { void CBordersPlusPlus::draw(CMonitor* pMonitor, float a, const Vector2D& offset) {
if (!g_pCompositor->windowValidMapped(m_pWindow)) if (!g_pCompositor->windowValidMapped(m_pWindow))
return; return;

View file

@ -25,6 +25,8 @@ class CBordersPlusPlus : public IHyprWindowDecoration {
virtual eDecorationLayer getDecorationLayer(); virtual eDecorationLayer getDecorationLayer();
virtual std::string getDisplayName();
private: private:
SWindowDecorationExtents m_seExtents; SWindowDecorationExtents m_seExtents;

View file

@ -46,6 +46,10 @@ void CHyprBar::onPositioningReply(const SDecorationPositioningReply& reply) {
m_bAssignedBox = reply.assignedGeometry; m_bAssignedBox = reply.assignedGeometry;
} }
std::string CHyprBar::getDisplayName() {
return "Hyprbar";
}
void CHyprBar::onMouseDown(SCallbackInfo& info, wlr_pointer_button_event* e) { void CHyprBar::onMouseDown(SCallbackInfo& info, wlr_pointer_button_event* e) {
if (m_pWindow != g_pCompositor->m_pLastWindow) if (m_pWindow != g_pCompositor->m_pLastWindow)
return; return;

View file

@ -29,6 +29,8 @@ class CHyprBar : public IHyprWindowDecoration {
bool m_bButtonsDirty = true; bool m_bButtonsDirty = true;
virtual std::string getDisplayName();
private: private:
SWindowDecorationExtents m_seExtents; SWindowDecorationExtents m_seExtents;