summaryrefslogtreecommitdiff
path: root/src/surface.h
AgeCommit message (Collapse)Author
2023-03-05Remove unused image.h.Phil Jones
2022-06-27Add default output selection.Phil Jones
Tofi should now appear on whatever the compositor's default output is (usually the focused one), unless --output has been given.
2022-06-10Avoid an unnecessary copy of the image buffer.Phil Jones
By pointing Cairo at the mmap-ed file used to create wl_shm buffers, we can eliminate a memcpy() on every draw, providing a decent speedup (especially for large window sizes). This comes at the expense of having to keep track of two Cairo contexts, one for each of our two buffers used for double buffering. Additionally, a single memcpy() is still required for initialisation of the second buffer, so the startup latency isn't affected much.
2022-06-09Minor cleanup.Phil Jones
2022-06-07Switch from using (E)GL to wl_shm.Phil Jones
eglInitialize() is slow (~50-100ms), and uses a fair amount of memory (~100 MB). For such a small, simple program that just wants to launch as quickly as possible, wl_shm performs better.
2021-11-01Add extra cleanup code to debug builds.Phil Jones
Also fix some memory leaks.
2021-10-31Add HiDPI support and lots of cleanup.Phil Jones
2021-10-29Basic text entry working.Phil Jones