gri3-wm/include
aszlig 9058fc44e6 Allow to validate the config file without X.
We're going to call parse_configuration() very early if -C is given on
the command line. Instead of the previous "only_check_config", which has
been a global variable, we now simply pass use_nagbar as false if we're
just validating.

This causes the whole parsing to run without X and of course without
starting nagbar and displaying the errors to standard out/error instead.

The return code of parse_configuration() is now a boolean which
represents whether an error occured during parsing and the programs exit
code is returned accordingly.

Although the config parser still has a lot of side-effects, we now can
parse without the need to have an XCB connection. A nicer implementation
would be to just set the new font and load it just after we're done
parsing, but to ensure we don't break functionality we just load a dummy
FONT_TYPE_NONE if XCB isn't available. The main reason for going this
route is that it's a bit difficult to test fonts in a distribution
agnostic way without bundling fonts with i3 (or Xdummy to be more
exact).

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-08-25 19:34:26 +02:00
..
i3 clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
all.h Abstract binding configuration to bindings.[ch] 2014-01-28 08:21:21 +01:00
assignments.h Use #pragma once 2014-01-01 15:06:57 +01:00
atoms.xmacro Handle WM_CHANGE_STATE requests for iconic state 2014-06-24 09:39:12 +02:00
bindings.h Feature: implement mouse bindings 2014-06-19 12:28:54 +02:00
click.h Use #pragma once 2014-01-01 15:06:57 +01:00
cmdparse.h Use #pragma once 2014-01-01 15:06:57 +01:00
commands.h Change the names of parser result structs 2014-05-20 19:59:01 +02:00
commands_parser.h Refactor parse_command 2014-05-31 14:59:35 +02:00
con.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
config.h Allow to validate the config file without X. 2014-08-25 19:34:26 +02:00
config_directives.h i3bar: implement custom mouse wheel commands 2014-07-10 22:40:12 +02:00
config_parser.h Allow to validate the config file without X. 2014-08-25 19:34:26 +02:00
data.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
debug.h Use #pragma once 2014-01-01 15:06:57 +01:00
display_version.h Use #pragma once 2014-01-01 15:06:57 +01:00
ewmh.h Implement EWMH desktop names 2014-06-24 09:04:05 +02:00
fake_outputs.h Use #pragma once 2014-01-01 15:06:57 +01:00
floating.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
handlers.h Switch to xcb-xkb and libxkbcommon 2014-06-21 19:10:37 +02:00
i3.h Switch to xcb-xkb and libxkbcommon 2014-06-21 19:10:37 +02:00
ipc.h Merge branch 'master' into next 2014-06-27 09:05:32 +02:00
key_press.h Add abstraction for running a binding 2014-06-01 11:55:01 +02:00
libi3.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
load_layout.h Bugfix: properly restore workspace containers (Thanks vals) 2014-07-15 10:27:42 +02:00
log.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
main.h Use #pragma once 2014-01-01 15:06:57 +01:00
manage.h Use #pragma once 2014-01-01 15:06:57 +01:00
match.h Use #pragma once 2014-01-01 15:06:57 +01:00
move.h Make command `move [direction]` work with criteria 2014-06-23 21:17:27 +02:00
output.h Use #pragma once 2014-01-01 15:06:57 +01:00
queue.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
randr.h Fix clang -Wextra except -Wunused-parameter. 2014-01-02 22:15:33 +01:00
regex.h Use #pragma once 2014-01-01 15:06:57 +01:00
render.h Use #pragma once 2014-01-01 15:06:57 +01:00
resize.h Use #pragma once 2014-01-01 15:06:57 +01:00
restore_layout.h Use #pragma once 2014-01-01 15:06:57 +01:00
scratchpad.h Use #pragma once 2014-01-01 15:06:57 +01:00
sd-daemon.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
shmlog.h Use #pragma once 2014-01-01 15:06:57 +01:00
sighandler.h Use #pragma once 2014-01-01 15:06:57 +01:00
startup.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
tree.h Use #pragma once 2014-01-01 15:06:57 +01:00
util.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
window.h Respect Motif hint for window decorations 2014-01-18 16:25:37 +01:00
workspace.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
x.h Use #pragma once 2014-01-01 15:06:57 +01:00
xcb.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00
xcb_compat.h Improved detection of windows that want floating 2014-03-08 21:00:44 +01:00
xcursor.h Use #pragma once 2014-01-01 15:06:57 +01:00
xinerama.h Use #pragma once 2014-01-01 15:06:57 +01:00
yajl_utils.h clang-format-3.5 **/*.h **/*.c 2014-06-19 11:20:32 +02:00