awesome/docs
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
..
aliases change module to class when documention links to a class description (#1440) 2017-01-23 18:55:28 -05:00
common doc: Update the CSS to support our custom table class 2018-10-12 14:19:25 -04:00
images Fix doc typos and optimised PNGs (#2000) 2017-08-16 20:07:08 +02:00
00-authors.md Fix doc typos and optimised PNGs (#2000) 2017-08-16 20:07:08 +02:00
01-readme.md Use xcb-errors library if it is available 2019-03-03 09:15:29 +01:00
02-contributing.md Add CodeTriage badge to awesomewm/awesome (#2209) 2018-03-12 22:52:43 -04:00
03-declarative-layout.md docs: Better document how widgets work 2019-01-24 10:58:45 -05:00
04-new-widgets.md Fix doc typos and optimised PNGs (#2000) 2017-08-16 20:07:08 +02:00
05-awesomerc.md.lua doc: Fix c.requests_no_titlebar example 2018-11-12 11:48:59 +03:00
06-appearance.md.lua doc: Add an index of valid properties to awful.spawn and awful.rules. 2018-10-12 14:19:25 -04:00
07-my-first-awesome.md Fix the reference to the default config in my-first-awesome 2018-03-11 16:08:07 +01:00
16-using-cairo.md Fix doc typos and optimised PNGs (#2000) 2017-08-16 20:07:08 +02:00
17-porting-tips.md Fix doc typos and optimised PNGs (#2000) 2017-08-16 20:07:08 +02:00
89-NEWS.md Start writing NEWS for the next release (#2624) 2019-02-09 17:35:42 -05:00
90-FAQ.md doc: Add a common problem section 2018-02-25 17:21:32 -05:00
_parser.lua doc: Update the CSS to support our custom table class 2018-10-12 14:19:25 -04:00
build_rules_index.lua doc: Add an index of valid properties to awful.spawn and awful.rules. 2018-10-12 14:19:25 -04:00
config.ld naughty: Move the notification object into its own file. 2019-02-16 15:25:10 -05:00
ldoc.css doc: Restore the example width limit to fit in 1024x768. 2018-10-12 14:19:25 -04:00
ldoc.ltp ldoc.ltp: improve HTML title 2019-01-04 22:39:28 +01:00
load_ldoc.cmake doc: Add an index of valid properties to awful.spawn and awful.rules. 2018-10-12 14:19:25 -04:00
sample_files.lua doc: Add the default theme to the sample files 2017-02-25 16:42:55 -05:00
sample_theme.lua sample_theme: Use get_configuration_dir() 2018-03-11 16:08:07 +01:00
widget_lists.cmake Add vim modelines to all CMake files 2016-12-31 14:02:14 +01:00