Files
i3/include
Uli Schlachter d6e2a38b5c Share graphics context globally (#4376)
Instead of creating a graphics context for every surface_t, this commit
adds a cache that allows to "remember" up to two GCs. Thus, the code
uses less GCs. When a GC from the cache can be used, this also gets rid
of a round-trip to the X11 server. Both of these are tiny, insignificant
savings, but so what?

Since GCs are per-depth, this code needs access to get_visual_depth().
To avoid a code duplication, this function is moved to libi3.

Fixes: https://github.com/i3/i3/issues/3478
Signed-off-by: Uli Schlachter <psychon@znc.in>
2023-07-22 10:24:13 +02:00
..
2022-06-01 09:49:05 +02:00
2023-01-22 18:33:23 +01:00
2022-06-01 09:49:05 +02:00
2022-03-28 10:14:52 +02:00
2022-02-10 10:25:20 +01:00
2022-12-14 13:23:12 +01:00
2017-09-13 17:41:05 +02:00
2018-10-13 21:10:10 +03:00
2016-11-08 13:46:43 -08:00
2019-10-03 06:09:57 +00:00
2019-10-14 03:31:24 +03:00
2022-06-01 09:49:05 +02:00
2023-07-22 10:24:13 +02:00
2020-04-20 05:54:17 +02:00