mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
a57c79687a
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>
16 lines
489 B
C
16 lines
489 B
C
#ifndef _CONFIG_H_
|
|
#define _CONFIG_H_
|
|
|
|
#define AWESOME_LUA_LIB_PATH "@AWESOME_LUA_LIB_PATH@"
|
|
#define XDG_CONFIG_DIR "@XDG_CONFIG_DIR@"
|
|
#define AWESOME_THEMES_PATH "@AWESOME_THEMES_PATH@"
|
|
#define AWESOME_ICON_PATH "@AWESOME_ICON_PATH@"
|
|
#define AWESOME_DEFAULT_CONF "@AWESOME_SYSCONFDIR@/rc.lua"
|
|
|
|
#cmakedefine WITH_DBUS
|
|
#cmakedefine WITH_XCB_ERRORS
|
|
#cmakedefine HAS_EXECINFO
|
|
|
|
#endif //_CONFIG_H_
|
|
|
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|