]> git.sur5r.net Git - i3/i3/log
i3/i3
11 years agoMerge branch 'fix-dump-log-errmsg'
Michael Stapelberg [Wed, 9 May 2012 17:47:10 +0000 (19:47 +0200)]
Merge branch 'fix-dump-log-errmsg'

11 years agoImprove the main error message of i3-dump-log
Michael Stapelberg [Wed, 9 May 2012 17:46:44 +0000 (19:46 +0200)]
Improve the main error message of i3-dump-log

11 years agoMove is_debug_build() to libi3/
Michael Stapelberg [Wed, 9 May 2012 17:12:20 +0000 (19:12 +0200)]
Move is_debug_build() to libi3/

11 years agoMerge branch 'fix-invalid-cmd-reply'
Michael Stapelberg [Wed, 2 May 2012 20:02:37 +0000 (22:02 +0200)]
Merge branch 'fix-invalid-cmd-reply'

11 years agoSend proper error messages upon parser failures, use yajl for generating command...
Michael Stapelberg [Wed, 2 May 2012 20:01:50 +0000 (22:01 +0200)]
Send proper error messages upon parser failures, use yajl for generating command replies

Fixes: #693
11 years agoMerge branch 'fix-spelling'
Michael Stapelberg [Wed, 2 May 2012 18:21:03 +0000 (20:21 +0200)]
Merge branch 'fix-spelling'

11 years agoFix spelling of success
Michael Stapelberg [Wed, 2 May 2012 18:20:45 +0000 (20:20 +0200)]
Fix spelling of success

Fixes: #695
11 years agoMerge branch 'build-mac-os-x'
Michael Stapelberg [Wed, 2 May 2012 18:08:34 +0000 (20:08 +0200)]
Merge branch 'build-mac-os-x'

11 years agolog.c: len is always positive, remove useless check (Thanks Marcus)
Michael Stapelberg [Wed, 2 May 2012 18:07:59 +0000 (20:07 +0200)]
log.c: len is always positive, remove useless check (Thanks Marcus)

11 years agodon’t link against librt on Mac OS X (Thanks Marcus)
Michael Stapelberg [Wed, 2 May 2012 18:06:57 +0000 (20:06 +0200)]
don’t link against librt on Mac OS X (Thanks Marcus)

11 years agoMake log.c figure out the physical amount of memory on Mac OS X (Thanks Marcus)
Michael Stapelberg [Wed, 2 May 2012 18:05:07 +0000 (20:05 +0200)]
Make log.c figure out the physical amount of memory on Mac OS X (Thanks Marcus)

11 years agomakefile: use LDFLAGS when linking test.commands_parser (Thanks Marcus)
Michael Stapelberg [Wed, 2 May 2012 18:00:50 +0000 (20:00 +0200)]
makefile: use LDFLAGS when linking test.commands_parser (Thanks Marcus)

12 years agoMerge branch 'release-4.2'
Michael Stapelberg [Wed, 25 Apr 2012 21:30:18 +0000 (23:30 +0200)]
Merge branch 'release-4.2'

12 years agodebian: install the RELEASE-NOTES as upstream changelog for now 4.2
Michael Stapelberg [Wed, 25 Apr 2012 21:21:10 +0000 (23:21 +0200)]
debian: install the RELEASE-NOTES as upstream changelog for now

12 years agodebian: bump changelog
Michael Stapelberg [Wed, 25 Apr 2012 21:19:52 +0000 (23:19 +0200)]
debian: bump changelog

12 years ago/usr/share/applications/i3.desktop: drop the encoding key, UTF-8 is now required
Michael Stapelberg [Wed, 25 Apr 2012 21:18:22 +0000 (23:18 +0200)]
/usr/share/applications/i3.desktop: drop the encoding key, UTF-8 is now required

12 years agodebian: add i3-dump-log.1 to manpages
Michael Stapelberg [Wed, 25 Apr 2012 21:18:04 +0000 (23:18 +0200)]
debian: add i3-dump-log.1 to manpages

12 years agoadd release notes for v4.2
Michael Stapelberg [Wed, 25 Apr 2012 21:06:39 +0000 (23:06 +0200)]
add release notes for v4.2

12 years agoi3bar: don’t immediately redraw bars after kicking tray clients
Michael Stapelberg [Tue, 24 Apr 2012 10:04:07 +0000 (12:04 +0200)]
i3bar: don’t immediately redraw bars after kicking tray clients

12 years agoa few little corrections for the previous commit
Michael Stapelberg [Mon, 23 Apr 2012 21:21:51 +0000 (23:21 +0200)]
a few little corrections for the previous commit

12 years agoman/i3-input.man: Add description of options and improve examples.
Mateusz Poszwa [Sun, 22 Apr 2012 14:34:20 +0000 (16:34 +0200)]
man/i3-input.man: Add description of options and improve examples.

12 years agoi3bar: when kicking tray clients, remove them immediately
Michael Stapelberg [Sun, 22 Apr 2012 18:53:01 +0000 (20:53 +0200)]
i3bar: when kicking tray clients, remove them immediately

This should fix empty spaces showing up instead of tray icons sometimes.

12 years agoi3bar: when tray_output == primary and there is no primary output, fall back to the...
Michael Stapelberg [Sun, 22 Apr 2012 18:51:15 +0000 (20:51 +0200)]
i3bar: when tray_output == primary and there is no primary output, fall back to the first available output

12 years agoi3bar: kick tray clients after output configuration changed
Michael Stapelberg [Sun, 22 Apr 2012 18:43:52 +0000 (20:43 +0200)]
i3bar: kick tray clients after output configuration changed

This makes i3bar reflect xrandr --output foo --primary changes immediately.

12 years agoi3bar: Bugfix: Properly update the primary flag
Michael Stapelberg [Sun, 22 Apr 2012 18:43:43 +0000 (20:43 +0200)]
i3bar: Bugfix: Properly update the primary flag

12 years agoMerge branch 'master' into next
Michael Stapelberg [Sun, 22 Apr 2012 18:11:25 +0000 (20:11 +0200)]
Merge branch 'master' into next

12 years agoMerge branch 'fix-i3bar-dying-tray'
Michael Stapelberg [Sun, 22 Apr 2012 18:11:07 +0000 (20:11 +0200)]
Merge branch 'fix-i3bar-dying-tray'

12 years agoi3bar: Bugfix: Properly reparent tray clients before killing the bar window when...
Michael Stapelberg [Sun, 22 Apr 2012 18:10:29 +0000 (20:10 +0200)]
i3bar: Bugfix: Properly reparent tray clients before killing the bar window when outputs disappear

Fixes: #655
12 years agobump copyright in --version (Thanks joepd)
Michael Stapelberg [Sun, 22 Apr 2012 11:04:24 +0000 (13:04 +0200)]
bump copyright in --version (Thanks joepd)

12 years agocfgparse: accept force-xinerama as a synonym of force_xinerama
Michael Stapelberg [Sat, 21 Apr 2012 10:48:09 +0000 (12:48 +0200)]
cfgparse: accept force-xinerama as a synonym of force_xinerama

12 years agoipc: update the links to the python libraries on github (Thanks BusMaster)
Michael Stapelberg [Sat, 14 Apr 2012 18:32:41 +0000 (20:32 +0200)]
ipc: update the links to the python libraries on github (Thanks BusMaster)

12 years agoadd missing docs/refcard_style.css to git
Michael Stapelberg [Fri, 13 Apr 2012 11:38:06 +0000 (13:38 +0200)]
add missing docs/refcard_style.css to git

12 years agofix broken link in docs/debugging (Thanks nh2)
Michael Stapelberg [Fri, 13 Apr 2012 11:30:04 +0000 (13:30 +0200)]
fix broken link in docs/debugging (Thanks nh2)

12 years agodebian: update changelog with new upload, add .menu file, update email, bump standard...
Michael Stapelberg [Thu, 12 Apr 2012 14:22:58 +0000 (16:22 +0200)]
debian: update changelog with new upload, add .menu file, update email, bump standards-version, fix section

12 years agoreplace the refcard with an HTML version (by SardemFF7)
Michael Stapelberg [Thu, 12 Apr 2012 14:01:10 +0000 (16:01 +0200)]
replace the refcard with an HTML version (by SardemFF7)

This eliminates our build-depedency on latex.

12 years agotests: warp the pointer to in multi-monitor tests to avoid flaky tests
Michael Stapelberg [Mon, 9 Apr 2012 12:48:43 +0000 (14:48 +0200)]
tests: warp the pointer to in multi-monitor tests to avoid flaky tests

12 years agot/166-assign: wait until the window is definitely mapped
Michael Stapelberg [Mon, 9 Apr 2012 12:48:25 +0000 (14:48 +0200)]
t/166-assign: wait until the window is definitely mapped

12 years agot/166-assign: remove unnecessary sleeps
Michael Stapelberg [Mon, 9 Apr 2012 12:48:15 +0000 (14:48 +0200)]
t/166-assign: remove unnecessary sleeps

12 years agoImplement fake-outputs option (cmdline, cfg) for multi-monitor testing
Michael Stapelberg [Mon, 9 Apr 2012 12:27:33 +0000 (14:27 +0200)]
Implement fake-outputs option (cmdline, cfg) for multi-monitor testing

This kills the dependency on xdmx and makes the testsuite simpler
and more flexible (in the output sizes / configurations).

12 years agoOnly resize when the left/right mouse button is used, not when scrolling (Thanks...
Michael Stapelberg [Sun, 8 Apr 2012 19:04:21 +0000 (21:04 +0200)]
Only resize when the left/right mouse button is used, not when scrolling (Thanks eeemsi)

12 years agoFix warning: properly initialize 'workspace' variable
Michael Stapelberg [Sun, 8 Apr 2012 18:45:49 +0000 (20:45 +0200)]
Fix warning: properly initialize 'workspace' variable

12 years agoImplement 'rename workspace <old_name> to <new_name>'
Michael Stapelberg [Sun, 8 Apr 2012 18:34:31 +0000 (20:34 +0200)]
Implement 'rename workspace <old_name> to <new_name>'

12 years agoImplement 'move [container|window] to workspace number <number>'
Michael Stapelberg [Sun, 8 Apr 2012 18:33:46 +0000 (20:33 +0200)]
Implement 'move [container|window] to workspace number <number>'

12 years agoImplement 'workspace number <number>' to switch to named workspaces
Michael Stapelberg [Sun, 8 Apr 2012 17:17:46 +0000 (19:17 +0200)]
Implement 'workspace number <number>' to switch to named workspaces

12 years agoPrevent changing focus outside a container when scrolling on the decorations
Michael Stapelberg [Sun, 8 Apr 2012 16:33:45 +0000 (18:33 +0200)]
Prevent changing focus outside a container when scrolling on the decorations

Fixes: #557
12 years agoReplace the old fullscreen container when requesting fullscreen
Michael Stapelberg [Sun, 8 Apr 2012 15:53:37 +0000 (17:53 +0200)]
Replace the old fullscreen container when requesting fullscreen

Fixes: #510
12 years agoImplement resize <grow|shrink> <width|height>, use it in the default config
Michael Stapelberg [Sun, 8 Apr 2012 13:59:49 +0000 (15:59 +0200)]
Implement resize <grow|shrink> <width|height>, use it in the default config

Fixes: #576
12 years agoBugfix: Properly terminate lines not ending with a newline (Thanks xeen)
Michael Stapelberg [Sat, 7 Apr 2012 17:15:41 +0000 (19:15 +0200)]
Bugfix: Properly terminate lines not ending with a newline (Thanks xeen)

Previously, we didn’t check for a newline and thus could be corrupting
formerly valid UTF-8 input, such as
    echo -n '↓'

Fixes: #671
12 years agoForce WM_TAKE_FOCUS event to be sent when clicking
Michael Stapelberg [Sat, 7 Apr 2012 14:22:58 +0000 (16:22 +0200)]
Force WM_TAKE_FOCUS event to be sent when clicking

This fixes more problems with Eclipse.
See also commit 1962c30dfb3baee0fb98589aca575ae54d1142e0

12 years agoMerge branch 'fix-eclipse-focus'
Michael Stapelberg [Sat, 7 Apr 2012 14:23:39 +0000 (16:23 +0200)]
Merge branch 'fix-eclipse-focus'

12 years agoForce WM_TAKE_FOCUS event to be sent when clicking
Michael Stapelberg [Sat, 7 Apr 2012 14:22:58 +0000 (16:22 +0200)]
Force WM_TAKE_FOCUS event to be sent when clicking

This fixes more problems with Eclipse.
See also commit 1962c30dfb3baee0fb98589aca575ae54d1142e0

12 years agoadd a testcase for the previous commit
Michael Stapelberg [Thu, 5 Apr 2012 16:12:24 +0000 (18:12 +0200)]
add a testcase for the previous commit

12 years agoBug 676: if scratchpad window is active on a non-visible workspace, then "scratchpad...
Peter Bui [Tue, 20 Mar 2012 22:52:38 +0000 (18:52 -0400)]
Bug 676: if scratchpad window is active on a non-visible workspace, then "scratchpad show" should move it to the current visible workspace.

12 years agoAdded option to select primary display on tray_output
Jose Pereira [Sun, 1 Apr 2012 14:07:15 +0000 (15:07 +0100)]
Added option to select primary display on tray_output

12 years agoUse (void) instead of () for functions without args (Thanks fernandotcl)
Michael Stapelberg [Sat, 31 Mar 2012 08:53:04 +0000 (10:53 +0200)]
Use (void) instead of () for functions without args (Thanks fernandotcl)

See also:
http://article.gmane.org/gmane.linux.kernel/1268792

The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4.

12 years agoi3bar: kill child processes when exit()ing (they might be stopped) (Thanks darkraven)
Michael Stapelberg [Mon, 26 Mar 2012 15:36:00 +0000 (17:36 +0200)]
i3bar: kill child processes when exit()ing (they might be stopped) (Thanks darkraven)

12 years agotestsuite: explicitly start Xdummy with -nolisten tcp
Michael Stapelberg [Mon, 26 Mar 2012 15:00:44 +0000 (17:00 +0200)]
testsuite: explicitly start Xdummy with -nolisten tcp

12 years agoA few style fixes for the previous commit
Michael Stapelberg [Mon, 26 Mar 2012 15:00:35 +0000 (17:00 +0200)]
A few style fixes for the previous commit

12 years agoUse 32bit visual only when needed. Thus we could drop the --enable-32bit-visual option.
darkraven [Thu, 1 Mar 2012 05:53:06 +0000 (13:53 +0800)]
Use 32bit visual only when needed. Thus we could drop the --enable-32bit-visual option.

12 years agoDon't multiply by sizeof(char) twice.
Fernando Tarlá Cardoso Lemos [Tue, 21 Feb 2012 16:53:01 +0000 (14:53 -0200)]
Don't multiply by sizeof(char) twice.

This is a no-op, since sizeof(char) is 1. But still, we shouldn't
multiply twice, it's misleading.

12 years agoDocument text_len in the draw_text description.
Fernando Tarlá Cardoso Lemos [Tue, 21 Feb 2012 16:51:31 +0000 (14:51 -0200)]
Document text_len in the draw_text description.

12 years agoExtends move command for floating windows
Pavel Löbl [Fri, 23 Mar 2012 12:39:17 +0000 (13:39 +0100)]
Extends move command for floating windows

12 years agouserguide: add a hint to xev (Thanks toxios)
Michael Stapelberg [Thu, 22 Mar 2012 12:10:36 +0000 (13:10 +0100)]
userguide: add a hint to xev (Thanks toxios)

12 years agoMerge branch 'master' into next
Michael Stapelberg [Wed, 21 Mar 2012 21:30:08 +0000 (22:30 +0100)]
Merge branch 'master' into next

12 years agoMerge branch 'fix-eclipse-focus'
Michael Stapelberg [Wed, 21 Mar 2012 21:29:51 +0000 (22:29 +0100)]
Merge branch 'fix-eclipse-focus'

12 years agoForce WM_TAKE_FOCUS event to be sent again upon EnterNotify
Michael Stapelberg [Wed, 21 Mar 2012 21:27:31 +0000 (22:27 +0100)]
Force WM_TAKE_FOCUS event to be sent again upon EnterNotify

This fixes focus problems with Eclipse. Apparently, Eclipse waits for getting
notified about the focus, and since it used non-managed windows, i3 didn’t care
to update the focus.

Fixes: #621, #675
12 years agoMerge branch 'master' into next
Michael Stapelberg [Wed, 21 Mar 2012 20:41:13 +0000 (21:41 +0100)]
Merge branch 'master' into next

12 years agoMerge branch 'leavestates'
Michael Stapelberg [Wed, 21 Mar 2012 20:40:55 +0000 (21:40 +0100)]
Merge branch 'leavestates'

12 years agocfgparse: leave EAT_WHITESPACE and BINDSYM_COND states on EOL (Thanks dothebart)
Michael Stapelberg [Wed, 21 Mar 2012 20:40:44 +0000 (21:40 +0100)]
cfgparse: leave EAT_WHITESPACE and BINDSYM_COND states on EOL (Thanks dothebart)

Fixes: #642
12 years agodebugging trick: keep a symbol pointing to I3_VERSION around
Michael Stapelberg [Wed, 21 Mar 2012 17:03:49 +0000 (18:03 +0100)]
debugging trick: keep a symbol pointing to I3_VERSION around

This way, gdb will include the i3 version in backtraces.

12 years agoMerge branch 'master' into next
Michael Stapelberg [Wed, 21 Mar 2012 19:24:29 +0000 (20:24 +0100)]
Merge branch 'master' into next

12 years agoMerge branch 'fix-floating-restart'
Michael Stapelberg [Wed, 21 Mar 2012 19:24:03 +0000 (20:24 +0100)]
Merge branch 'fix-floating-restart'

12 years agoBugfix: Fix restart with for_window floating configuration (Thanks garga)
Michael Stapelberg [Wed, 21 Mar 2012 19:14:50 +0000 (20:14 +0100)]
Bugfix: Fix restart with for_window floating configuration (Thanks garga)

Fixes: #668
Calling tree_close with dont_kill_parent=true will avoid it from closing the
workspace if it’s empty (and it’s temporarily empty, because 'floating disable'
detaches, then re-attaches the window).

12 years agoBugfix: Also clear the command parser’s stack upon invalid commands (Thanks helgikrs)
Michael Stapelberg [Wed, 21 Mar 2012 16:20:07 +0000 (17:20 +0100)]
Bugfix: Also clear the command parser’s stack upon invalid commands (Thanks helgikrs)

Fixes: #652
12 years agoi3bar: Fix memory for old plain-text input (Thanks Han)
Michael Stapelberg [Mon, 19 Mar 2012 21:30:20 +0000 (22:30 +0100)]
i3bar: Fix memory for old plain-text input (Thanks Han)

12 years agoMerge branch 'master' into next
Michael Stapelberg [Mon, 19 Mar 2012 20:42:08 +0000 (21:42 +0100)]
Merge branch 'master' into next

12 years agoMerge branch 'fix-i3bar-multi-dpy'
Michael Stapelberg [Mon, 19 Mar 2012 20:42:00 +0000 (21:42 +0100)]
Merge branch 'fix-i3bar-multi-dpy'

12 years agoFix i3bar when using multiple displays (Thanks brimstone)
Michael Stapelberg [Mon, 19 Mar 2012 20:41:45 +0000 (21:41 +0100)]
Fix i3bar when using multiple displays (Thanks brimstone)

12 years agoi3-config-wizard: use fgetln on OpenBSD, too (Thanks David Coppa)
Michael Stapelberg [Tue, 21 Feb 2012 14:23:58 +0000 (15:23 +0100)]
i3-config-wizard: use fgetln on OpenBSD, too (Thanks David Coppa)

12 years agot/158-wm_take_focus: use sync_with_i3 instead of a timeout
Michael Stapelberg [Tue, 21 Feb 2012 13:37:55 +0000 (14:37 +0100)]
t/158-wm_take_focus: use sync_with_i3 instead of a timeout

12 years agot/164-kill-win-vs-client: get rid of sleep()s
Michael Stapelberg [Tue, 21 Feb 2012 13:28:37 +0000 (14:28 +0100)]
t/164-kill-win-vs-client: get rid of sleep()s

12 years agot/187-commands-parser: shave off a bit of time by consolidating calls
Michael Stapelberg [Tue, 21 Feb 2012 13:22:26 +0000 (14:22 +0100)]
t/187-commands-parser: shave off a bit of time by consolidating calls

12 years agot/171-config-migrate: shave off a bit of time by consolidating migrate_config calls
Michael Stapelberg [Tue, 21 Feb 2012 13:11:04 +0000 (14:11 +0100)]
t/171-config-migrate: shave off a bit of time by consolidating migrate_config calls

12 years agot/166-assign: check for i3-nagbar in the process hierarchy instead of sleep(1)
Michael Stapelberg [Tue, 21 Feb 2012 12:58:49 +0000 (13:58 +0100)]
t/166-assign: check for i3-nagbar in the process hierarchy instead of sleep(1)

12 years agotests: don’t wait for window map event in open_special
Michael Stapelberg [Tue, 21 Feb 2012 12:40:53 +0000 (13:40 +0100)]
tests: don’t wait for window map event in open_special

Since the window doesn’t get mapped at all in these tests (it’s assigned to an
invisible workspace), this saves us a timeout of 2 seconds :).

12 years agoUse gettimeofday() and struct timevals instead of time()
Michael Stapelberg [Tue, 21 Feb 2012 12:38:49 +0000 (13:38 +0100)]
Use gettimeofday() and struct timevals instead of time()

Initially I thought using the second precision time() function is good enough,
but to make t/113-urgent.t considerably faster (>2s vs. 0.08s), we put in a
little more effort and use gettimeofday. Otherwise, this test blocks the whole
testsuite from completing much faster on modern machines :).

12 years agore-add src/cmdparse.* to clean target for people who are switching from the master...
Michael Stapelberg [Thu, 16 Feb 2012 23:44:18 +0000 (23:44 +0000)]
re-add src/cmdparse.* to clean target for people who are switching from the master branch / have old build dirs

12 years agoi3bar: compile with yajl < 2
Michael Stapelberg [Thu, 16 Feb 2012 23:41:58 +0000 (23:41 +0000)]
i3bar: compile with yajl < 2

12 years agodebian: add i3bar-protocol.html to docs
Michael Stapelberg [Thu, 16 Feb 2012 23:32:36 +0000 (23:32 +0000)]
debian: add i3bar-protocol.html to docs

12 years agoImplement the i3bar JSON protocol (with fallback to plain text)
Michael Stapelberg [Thu, 16 Feb 2012 23:27:11 +0000 (23:27 +0000)]
Implement the i3bar JSON protocol (with fallback to plain text)

If the first line of the input starts with {"version":, then the input is
considered to be JSON, otherwise it is interpreted as plain text.

Only the "full_text" and "color" parts of a block are currently understood by
i3bar.

12 years agoadd docs/i3bar-protocol
Michael Stapelberg [Thu, 16 Feb 2012 20:39:34 +0000 (20:39 +0000)]
add docs/i3bar-protocol

12 years agotests: add a testcase for the floating size constraints
Michael Stapelberg [Thu, 16 Feb 2012 18:43:47 +0000 (18:43 +0000)]
tests: add a testcase for the floating size constraints

12 years agouse signed integer types for the floating size constraints
Michael Stapelberg [Thu, 16 Feb 2012 18:41:54 +0000 (18:41 +0000)]
use signed integer types for the floating size constraints

12 years agocfgparse: also accept negative numbers
Michael Stapelberg [Thu, 16 Feb 2012 18:41:48 +0000 (18:41 +0000)]
cfgparse: also accept negative numbers

12 years agoImplement support for user configuration of constraints on floating window dimensions.
D Thompson [Thu, 16 Feb 2012 14:36:46 +0000 (06:36 -0800)]
Implement support for user configuration of constraints on floating window dimensions.

12 years agoMerge branch 'master' into next
Michael Stapelberg [Wed, 15 Feb 2012 22:05:28 +0000 (22:05 +0000)]
Merge branch 'master' into next

12 years agoMerge branch 'fix-i3bar-highlight'
Michael Stapelberg [Wed, 15 Feb 2012 22:05:07 +0000 (22:05 +0000)]
Merge branch 'fix-i3bar-highlight'

12 years agoHighlight i3bar ws when changing output w/ mouse.
Simon Kämpe [Thu, 2 Feb 2012 20:28:38 +0000 (21:28 +0100)]
Highlight i3bar ws when changing output w/ mouse.

12 years agoRender only once for all matching assignments (Thanks rami)
Michael Stapelberg [Wed, 15 Feb 2012 21:02:40 +0000 (21:02 +0000)]
Render only once for all matching assignments (Thanks rami)

Fixes: #608
12 years agoRefactor the interface of commands.c
Michael Stapelberg [Tue, 7 Feb 2012 22:38:21 +0000 (17:38 -0500)]
Refactor the interface of commands.c

This change has two implications:

1) tree_render() will now be called precisely once for input which consists of
   multiple commands (like "focus left; focus right"). Also, the caller of
   parse_command() has to call it. This makes us able to fix tickets such as
   ticket #608 (where multiple tree_render() calls are noticable).

2) The output of a command is now a JSON array of return values of the
   individual subcommands. In the case of "focus left; focus right", this is:

   [{"success":true}, {"success":true}]

   While this is incompatible with what i3 returned before, the return value of
   commands was undocumented and therefore not subject to our API stability.