Skip to content

Conversation

@aphelei
Copy link

@aphelei aphelei commented Jun 16, 2025

review carefully

before with bordersize = 10
image

after with bordersize = 10
Screenshot_20250616-202731

before with bordersize = 30
Screenshot_20250616-202345

one problem persists if borders are too big (bordersize = 30 here)
image

I can't do much more I can't code

@aphelei
Copy link
Author

aphelei commented Jun 16, 2025

it's probably wrong

@aphelei
Copy link
Author

aphelei commented Jun 16, 2025

yeah this is wrong with bar_precedence_over_border = false

image

const auto CAIROSURFACE = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, bufferSize.x, bufferSize.y);
const auto CAIRO = cairo_create(CAIROSURFACE);

const auto PWINDOW = m_pWindow.lock();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? you can just deref m_pWindow

const auto CAIRO = cairo_create(CAIROSURFACE);

const auto PWINDOW = m_pWindow.lock();
const auto BORDERSIZE = PWINDOW->getRealBorderSize();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only used once, redundant local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants