awesome/common
Uli Schlachter a57c79687a Use xcb-errors library if it is available
This library allows to get a human-readable string describing X11
requests, events, and errors. We now use this library to pretty-print
X11 errors if we get any.

To test this code, I added the following two lines to AwesomeWM so that
X11 errors are generated:

    xcb_set_input_focus(globalconf.connection, 42, 42, 42);
    xcb_randr_set_output_primary(globalconf.connection,
        globalconf.screen->root, 42);

Output without xcb-errors:

    X error: request=SetInputFocus (major 42, minor 0), error=BadValue (2)
    X error: request=(null) (major 140, minor 30), error=(null) (147)

Output with xcb-errors:

    X error: request=SetInputFocus (major 42, minor 0), error=Value (2)
    X error: request=RandR-SetOutputPrimary (major 140, minor 30), error=RandR-BadOutput (147)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-03-03 09:15:29 +01:00
..
array.h Deprecate signal_add() on C-API objects 2016-06-04 17:51:45 +02:00
atoms.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
atoms.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
atoms.list Implement INCR transfers 2019-02-07 17:56:26 +01:00
backtrace.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
backtrace.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
buffer.c Add missing va_end()s to buffer_addvf() 2017-11-17 10:23:11 +01:00
buffer.h Add a vim modeline to all C source 2015-12-12 17:42:16 +01:00
luaclass.c Migrate a bit away from luaL_register(). 2019-02-16 14:25:20 +01:00
luaclass.h Deprecate signal_add() on C-API objects 2016-06-04 17:51:45 +02:00
lualib.c Add a vim modeline to all C source 2015-12-12 17:42:16 +01:00
lualib.h Reduce code duplication with luaA_*_call_handler (#2321) 2018-07-25 18:31:02 -04:00
luaobject.c Use signal_array_getbyname() where appropriate 2018-01-24 09:13:35 +01:00
luaobject.h C: Add a .data table to all C objects 2016-09-30 11:07:55 +02:00
signal.h Use signal_array_getbyname() where appropriate 2018-01-24 09:13:35 +01:00
util.c Add timestamps to messages on stderr (#602) 2015-12-31 15:38:17 +01:00
util.h Add & use a non-fatal kind of assert() (#1779) 2017-05-13 23:22:15 +02:00
version.c Use xcb-errors library if it is available 2019-03-03 09:15:29 +01:00
version.h Add a vim modeline to all C source 2015-12-12 17:42:16 +01:00
xcursor.c Switch from libXcursor to libxcb-cursor 2013-09-19 16:48:10 +02:00
xcursor.h Switch from libXcursor to libxcb-cursor 2013-09-19 16:48:10 +02:00
xembed.c xembed: Stop using XCB_CURRENT_TIME 2017-04-15 12:04:57 +02:00
xembed.h xembed: Stop using XCB_CURRENT_TIME 2017-04-15 12:04:57 +02:00
xutil.c Remove some unused fields from globalconf 2015-12-22 17:25:45 +01:00
xutil.h Make sure we always flush after xcb_ungrab_server() 2019-02-27 10:20:22 +01:00