Uli Schlachter 2e500f0817 Check cairo status in draw_util_surface_free()
When "something goes wrong" in cairo-land, the corresponding cairo
object goes into an error state. These errors are sticky. Thus, it is
enough to check for errors before destroying the context.

This commit adds a check in draw_util_surface_free() to check the cairo
context's status and print a log message if anything is wrong.

The idea here is to help debugging drawing issues. Instead of "nothing
visible", the corresponding log message hopefully helps debugging.

This code would have saved me lots of time in figuring out why my pull
request #4379 did not work.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-09-15 18:14:37 +02:00
..
2020-04-19 09:58:25 +02:00
2020-04-20 04:25:06 +02:00
2020-04-20 04:25:06 +02:00
2020-04-19 09:58:25 +02:00
2020-04-20 04:25:06 +02:00
2020-04-19 09:58:25 +02:00
2020-04-20 04:25:06 +02:00
2020-04-20 04:25:06 +02:00
2020-04-20 04:25:06 +02:00
2020-05-19 14:45:06 +02:00
2020-04-20 04:25:06 +02:00
2020-04-20 04:25:06 +02:00
2020-04-19 09:58:25 +02:00
2020-04-20 04:25:06 +02:00

Introduction
============

libi3 is an *INTERNAL* library which contains functions that i3 and related
tools (i3-msg, i3-input, i3-nagbar, i3-config-wizard, i3bar) use.

It is NOT to be used by other programs.

Structure
=========

Every function gets its own .c file, which in turn gets compiled into an .o
object file. Afterwards, all .o files are archived into one static library
(libi3.a). This library will be linked into all i3 binaries. The linker is able
to eliminate unused .o files when linking, so only the functions which you
actually use will be included in the corresponding binary.