[hackers] [libsl|dmenu][PATCH v2] Fix truncation issues and improve performance

From: NRK <nrk_AT_disroot.org>
Date: Fri, 25 Mar 2022 15:34:29 +0600

Hi,

Fixed a couple bugs/issues with the previous patches and attached the
amended ones. I'm confident that these patches shouldn't have any
remaining logic issues, but feel free to point them out in case there is.

Some notable changes from the previous patches:

* The drw related patches have separated. This is so that they can be
  cleanly applied to libsl (and dwm). Should additionally help with the
  review process.

* The truncation condition as well as remaining width to override has been
  corrected.

* The TEXTW_CLAMP macro has been converted to a function to avoid
  calculating width twice.

* Since the `invert` parameter in drw_text() does not get used when not
  rendering, it's now being internally reused for specifying a minimum width.

Additionally, there's one *new* patch attached, which fixes the
performance issue in case we have no font match for a given codepoint.

- NRK

Received on Fri Mar 25 2022 - 10:34:29 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 25 2022 - 10:48:34 CET