Skip to content

center bar content - #391

Open
aphelei wants to merge 1 commit into
hyprwm:mainfrom
aphelei:main
Open

center bar content#391
aphelei wants to merge 1 commit into
hyprwm:mainfrom
aphelei:main

Conversation

@aphelei

@aphelei aphelei commented Jun 16, 2025

Copy link
Copy Markdown

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

aphelei commented Jun 16, 2025

Copy link
Copy Markdown
Author

it's probably wrong

@aphelei

aphelei commented Jun 16, 2025

Copy link
Copy Markdown
Author

yeah this is wrong with bar_precedence_over_border = false

image

Comment thread hyprbars/barDeco.cpp
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
Copy Markdown
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

Comment thread hyprbars/barDeco.cpp
const auto CAIRO = cairo_create(CAIROSURFACE);

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

Copy link
Copy Markdown
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