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

fixes pango_markup support with title_format #3179

Merged
merged 1 commit into from
Nov 24, 2018

Conversation

baloo
Copy link
Contributor

@baloo baloo commented Nov 24, 2018

The support for pango_markup was broken in title_format because the
formated title was escaped. I think only the payload should be escaped.

This commit fixes 789a877

The pango_markup looks like:

font pango:"DejaVu Sans Mono 10"
for_window [class=".*"] title_format "<span background='#ff0000'>%title</span>"

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.

Nice catch!

sway/tree/view.c Outdated Show resolved Hide resolved
@baloo baloo force-pushed the baloo/title_format-pango_markup branch from 447a3d9 to fa6356e Compare November 24, 2018 14:42
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.

Almost there

sway/tree/view.c Outdated Show resolved Hide resolved
sway/tree/view.c Outdated Show resolved Hide resolved
@baloo baloo force-pushed the baloo/title_format-pango_markup branch 2 times, most recently from 342c385 to f8d1a65 Compare November 24, 2018 16:26
The support for pango_markup was broken in title_format because the
formated title was escaped. I think only the payload should be escaped.

This commit fixes 789a877
@baloo baloo force-pushed the baloo/title_format-pango_markup branch from f8d1a65 to caee2df Compare November 24, 2018 16:26
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.

LGTM

@emersion emersion merged commit 827e551 into swaywm:master Nov 24, 2018
@emersion
Copy link
Member

Thanks!

@baloo
Copy link
Contributor Author

baloo commented Nov 24, 2018

Thank you!

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