Skip to content

Commit

Permalink
groupbar: fix crash in renderGradientTo
Browse files Browse the repository at this point in the history
fixes #3985
  • Loading branch information
vaxerski committed Nov 29, 2023
1 parent 3caaa48 commit b80c72c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/render/decorations/CHyprGroupBarDecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ CTitleTex::~CTitleTex() {

void renderGradientTo(CTexture& tex, const CColor& grad) {

if (!g_pCompositor->m_pLastMonitor)
return;

const Vector2D& bufferSize = g_pCompositor->m_pLastMonitor->vecPixelSize;

const auto CAIROSURFACE = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, bufferSize.x, bufferSize.y);
Expand Down

0 comments on commit b80c72c

Please sign in to comment.