Skip to content
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

Merged
merged 1 commit into from
May 10, 2021

Conversation

concatime
Copy link
Contributor

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.

@@ -2,7 +2,7 @@
#define _SWAY_CAIRO_H
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.
@concatime concatime force-pushed the fix-cairo-namespace branch from c31cf9e to 927ddc5 Compare May 7, 2021 21:31
concatime added a commit to concatime/swaybg that referenced this pull request May 7, 2021
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

Thanks

@emersion emersion merged commit d45623c into swaywm:master May 10, 2021
emersion pushed a commit to swaywm/swaybg that referenced this pull request May 10, 2021
@concatime concatime deleted the fix-cairo-namespace branch May 10, 2021 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants