awesome/objects
Uli Schlachter ec3901a81e Rewrite the xcursor caching code
Previously, the cache for xcursors consisted of a static array. We had a
hardcoded list of supported cursor names and each one got assigned a
position in this array. This hardcoded list means that one cannot simply
use whatever cursor a cursor theme happens to provide, since the name
needs to be in our list.

In this commit, the code is rewritten. Instead of a hardcoded list, a
sorted array is now used as the cache, as provided by the BARRAY code
from common/util.h. The array is sorted by the name of the cursor.

This change implies an API change for the xcursor code. Previously, one
had to first translate a cursor name into a cache index
(xcursor_font_fromstr()) and could then use this to actually get the
cursor (xcursor_new()). With this commit, xcursor_new() is the only
function provided by the cursor code and it directly gets a string as
argument.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2022-12-04 08:55:46 +01:00
..
button.c Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
button.h Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
client.c objects.client: Update the property documentation. 2022-08-29 22:49:47 -07:00
client.h Relocate a client window as if it is undecorated when reparenting it back. It eliminates the position offset due to re-decorating when a client trys to restore its previous position. (#3253) 2022-02-02 22:59:01 +01:00
drawable.c objects.drawable: Update the property documentation. 2022-08-29 22:49:47 -07:00
drawable.h drawable/drawin: Pass both lua_State and stack index around 2014-12-06 10:46:45 +01:00
drawin.c Rewrite the xcursor caching code 2022-12-04 08:55:46 +01:00
drawin.h Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
key.c Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
key.h Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
screen.c fix xrandr 1.5 virtual monitors. issue 3132 (#3743) 2022-12-03 14:18:44 -08:00
screen.h screen: Add a `name` property to the C API. 2019-09-30 00:49:40 -04:00
selection_acquire.c selection_acquire: Change the API to a table 2019-02-17 08:00:57 +01:00
selection_acquire.h Begin implementing selection transfers 2019-02-11 09:01:37 +01:00
selection_getter.c property: Remove unused int return 2019-02-11 10:13:13 +01:00
selection_getter.h property: Remove unused int return 2019-02-11 10:13:13 +01:00
selection_transfer.c Reduce scope of data variable 2019-02-17 18:43:02 +01:00
selection_transfer.h Selection transfer: Support INCR transfers 2019-02-11 09:21:50 +01:00
selection_watcher.c selection watcher: Actually watch selections 2019-02-06 10:27:59 +01:00
selection_watcher.h Prepare a selection watcher interface 2019-02-06 09:30:16 +01:00
tag.c objects.tag: Update the property documentation. 2022-08-29 22:49:47 -07:00
tag.h Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
window.c Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00
window.h Move variable declarations from header to C file to fix build with GCC 10 2020-04-17 19:25:40 +02:00