Skip to content

Commit

Permalink
Enable pango markup for -window-format in wayland
Browse files Browse the repository at this point in the history
Strings are already escaped when necessary. The x11 counterpart was implemented
in davatorium#1288.
  • Loading branch information
MikeWalrus authored and lbonn committed Dec 20, 2023
1 parent 36621af commit b29518f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/modes/wayland-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static char *_generate_display_string(const WaylandWindowModePrivateData *pd,
}

static char *_get_display_value(const Mode *sw, unsigned int selected_line,
G_GNUC_UNUSED int *state,
int *state,
G_GNUC_UNUSED GList **attr_list,
int get_entry) {
WaylandWindowModePrivateData *pd =
Expand All @@ -568,6 +568,7 @@ static char *_get_display_value(const Mode *sw, unsigned int selected_line,
if (toplevel->state & TOPLEVEL_STATE_ACTIVATED) {
*state |= ACTIVE;
}
*state |= MARKUP;

return get_entry ? _generate_display_string(pd, toplevel) : NULL;
}
Expand Down

0 comments on commit b29518f

Please sign in to comment.