gri3-wm/src
Michael Stapelberg 51da57d5e6 validate JSON before loading
This commit also introduces slurp() which reads a file in its entirety. Using
this function instead of doing IO in the functions in load_layout.c again and
again makes the code cleaner (fixing at least two memory leaks) and avoids
re-reading the same file 3 times.

related to #2755
2017-09-13 18:46:17 +02:00
..
assignments.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
bindings.c Fix 'Mouse binding don't work' 2017-07-07 01:03:36 +05:30
click.c Introduce --exclude-titlebar flag for mouse bindings. (#2703) 2017-05-02 09:08:42 +02:00
commands.c validate JSON before loading 2017-09-13 18:46:17 +02:00
commands_parser.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
con.c Bugfix: free incomplete containers when JSON parsing fails 2017-09-13 18:46:12 +02:00
config.c Introduce the GET_CONFIG IPC request 2017-08-19 19:08:51 +02:00
config_directives.c Introduce --exclude-titlebar flag for mouse bindings. (#2703) 2017-05-02 09:08:42 +02:00
config_parser.c scalloc parse_config input to make sure it terminates with '\0' 2017-09-13 18:46:04 +02:00
display_version.c Fix memory leaks (#2560) 2016-11-13 10:45:39 -08:00
ewmh.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
fake_outputs.c Store output names as a linked list 2017-09-13 18:45:46 +02:00
floating.c Respect minimum size hints for floating windows. (#2508) 2016-11-28 22:09:39 +01:00
handlers.c Introduce output_primary_name function 2017-09-13 18:45:46 +02:00
ipc.c ipc: Canonicalize output names in bar configuration 2017-09-13 18:45:46 +02:00
key_press.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
load_layout.c validate JSON before loading 2017-09-13 18:46:17 +02:00
log.c Report error during error log creation (#2625) 2017-01-10 09:29:06 +01:00
main.c Introduce output_primary_name function 2017-09-13 18:45:46 +02:00
manage.c Introduce output_primary_name function 2017-09-13 18:45:46 +02:00
match.c Implement 'swap' command. 2017-05-15 21:06:38 +02:00
move.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
output.c Store output names as a linked list 2017-09-13 18:45:46 +02:00
randr.c randr: Look up alternative output names when searching outputs 2017-09-13 18:45:46 +02:00
regex.c Fix memleak: free regex when parsing fails 2017-08-28 09:22:56 +02:00
render.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
resize.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
restore_layout.c migrate placeholder windows to draw_util (#2646) 2017-01-21 07:53:09 -08:00
scratchpad.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
sd-daemon.c Always use socket activation 2016-06-11 14:47:23 +02:00
sighandler.c Properly initialize sigaction struct 2017-09-06 07:36:13 +02:00
startup.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
tree.c validate JSON before loading 2017-09-13 18:46:17 +02:00
util.c validate JSON before loading 2017-09-13 18:46:17 +02:00
version.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
window.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
workspace.c Introduce output_primary_name function 2017-09-13 18:45:46 +02:00
x.c Implement 'swap' command. 2017-05-15 21:06:38 +02:00
xcb.c add error check and log for xcb_create_window 2017-05-12 09:01:37 +02:00
xcursor.c Ensure all *.[ch] files include config.h 2016-10-23 21:09:24 +02:00
xinerama.c Store output names as a linked list 2017-09-13 18:45:46 +02:00