-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cairo: Replace <cairo/cairo.h> by <cairo.h> #6262
Conversation
include/cairo_renderer.h
Outdated
@@ -2,7 +2,7 @@ | |||
#define _SWAY_CAIRO_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The include guard needs to be updated as well.
Maybe cairo_util.h
would be a better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose cairo_renderer.h
just like @Cloudef did in Cloudef/bemenu@ebd7338. Should I rename it to cairo_util.h
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. "Renderer" doesn't make much sense to me for Sway.
For full context, read https://gitlab.freedesktop.org/cairo/cairo/-/issues/479 TL;DR, cairo’s pc file adds `/cairo` to CFLAGS. So namespace cairo shouldn’t be used.
c31cf9e
to
927ddc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
For full context, read Cloudef/bemenu#170 and https://gitlab.freedesktop.org/cairo/cairo/-/issues/479.
TL;DR, cairo’s pc file adds
/cairo
to CFLAGS.So namespace cairo shouldn’t be used.
It was working simply because
/usr/include
is always used, not because of Meson + pkg-config.A similar patch will land in swaybg too.
Thank you.