polybar-dwm/include
László Várady 701102d44b fix(cairo): Fix font prioritization
In the previous implementation, std::find() returned fns.end() several times,
which caused an "Address boundary error" in std::sort if the preferred
font-index was set to m_fonts.size() + 1.

This commit reimplements the font prioritization with a simple swap.

Reproduction steps:

- Start polybar with the following config:

  [bar/top]
  font-0 = NotoSans-Regular:size=8;0
  font-1 = MaterialIcons:size=10;0

  modules-left = date

  [module/date]
  type = internal/date
  date = %Y-%m-%d
  label-font = 3 ; invalid index
2017-01-29 15:16:00 +01:00
..
adapters refactor(clang-tidy): Apply fixes 2017-01-24 08:01:04 +01:00
cairo fix(cairo): Fix font prioritization 2017-01-29 15:16:00 +01:00
components fix(renderer): Alignment blocks 2017-01-27 15:36:37 +01:00
drawtypes feat(bspwm,i3): Fuzzy-matching names for icons 2017-01-23 17:01:30 +01:00
events refactor(renderer): Cleanup 2017-01-25 23:38:51 +01:00
modules fix(modules): Warmup in runner thread to avoid block 2017-01-27 13:29:10 +01:00
utils fix(color_util): Parsing 2017-01-27 13:46:27 +01:00
x11 refactor(tray): Cleanup 2017-01-25 23:37:16 +01:00
CMakeLists.txt fix(version): Follow APP_VERSION in POLYBAR_NS 2017-01-29 15:16:00 +01:00
common.hpp fix(version): Follow APP_VERSION in POLYBAR_NS 2017-01-29 15:16:00 +01:00
debug.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
errors.hpp refactor: Move all event handling to the controller 2016-12-20 05:16:04 +01:00
settings.hpp.cmake fix(version): Follow APP_VERSION in POLYBAR_NS 2017-01-29 15:16:00 +01:00
version.hpp fix(version): Follow APP_VERSION in POLYBAR_NS 2017-01-29 15:16:00 +01:00