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;
}
std::string CBordersPlusPlus::getDisplayName() {
return "Borders++";
}
void CBordersPlusPlus::draw(CMonitor* pMonitor, float a, const Vector2D& offset) {
if (!g_pCompositor->windowValidMapped(m_pWindow))
return;

View file

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

View file

@ -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;

View file

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