]> git.sur5r.net Git - i3/i3/log
i3/i3
13 years agoBugfix: check ->layout, not ->type for L_STACKED
Michael Stapelberg [Mon, 14 Feb 2011 15:35:48 +0000 (16:35 +0100)]
Bugfix: check ->layout, not ->type for L_STACKED

13 years agoBugfix: Correctly check asprintf() return value
Michael Stapelberg [Mon, 14 Feb 2011 15:33:42 +0000 (16:33 +0100)]
Bugfix: Correctly check asprintf() return value

13 years agoFix libxcursor -> xcb cursors fallback.
Fernando Tarlá Cardoso Lemos [Sat, 5 Feb 2011 16:23:02 +0000 (14:23 -0200)]
Fix libxcursor -> xcb cursors fallback.

13 years agofix a rendering problem for split cons inside tabbed cons (Thanks julien)
Michael Stapelberg [Wed, 2 Feb 2011 16:56:29 +0000 (17:56 +0100)]
fix a rendering problem for split cons inside tabbed cons (Thanks julien)

This fixes #280.

13 years agotests: add testcase for the focus when moving floating con to other ws problem
Michael Stapelberg [Tue, 1 Feb 2011 17:18:25 +0000 (18:18 +0100)]
tests: add testcase for the focus when moving floating con to other ws problem

13 years agotests: extend testcase to check for the last commit
Michael Stapelberg [Tue, 1 Feb 2011 17:18:07 +0000 (18:18 +0100)]
tests: extend testcase to check for the last commit

13 years agobugfix: don’t crash when moving windows out of a floating con (Thanks mseed)
Michael Stapelberg [Tue, 1 Feb 2011 16:53:15 +0000 (17:53 +0100)]
bugfix: don’t crash when moving windows out of a floating con (Thanks mseed)

13 years agoBugfix: Correctly focus con when moving to another workspace (Thanks mseed)
Michael Stapelberg [Tue, 1 Feb 2011 16:17:50 +0000 (17:17 +0100)]
Bugfix: Correctly focus con when moving to another workspace (Thanks mseed)

This fixes #310.

13 years agodisable workspace-level move operations (not yet implemented) (Thanks mseed)
Michael Stapelberg [Tue, 1 Feb 2011 15:59:02 +0000 (16:59 +0100)]
disable workspace-level move operations (not yet implemented) (Thanks mseed)

13 years agoBugfix: When the container which was just closed is focused, we *do* need to focus...
Michael Stapelberg [Tue, 1 Feb 2011 15:42:59 +0000 (16:42 +0100)]
Bugfix: When the container which was just closed is focused, we *do* need to focus another one (Thanks mseed)

13 years agoDon’t create a split container if no other cons are on a workspace (Thanks mseed)
Michael Stapelberg [Tue, 1 Feb 2011 15:08:47 +0000 (16:08 +0100)]
Don’t create a split container if no other cons are on a workspace (Thanks mseed)

This fixes #306.

13 years agofix some compiler warnings
Michael Stapelberg [Tue, 1 Feb 2011 14:43:59 +0000 (15:43 +0100)]
fix some compiler warnings

13 years agoFix the choice of the right containers for resizing.
Fernando Tarlá Cardoso Lemos [Sat, 29 Jan 2011 16:32:44 +0000 (14:32 -0200)]
Fix the choice of the right containers for resizing.

Also fixes #311, which was an assertion failure that uncovered
this problem. Thanks mseed, Merovius.

13 years agodocs: add tree-*.png (for tree-migrating)
Michael Stapelberg [Sat, 29 Jan 2011 17:30:43 +0000 (18:30 +0100)]
docs: add tree-*.png (for tree-migrating)

13 years agodocs/ipc: document that the highest bit is 1 for event replies
Michael Stapelberg [Sat, 29 Jan 2011 17:06:56 +0000 (18:06 +0100)]
docs/ipc: document that the highest bit is 1 for event replies

13 years agoDon't mess with sizes when moving to other ws.
Fernando Tarlá Cardoso Lemos [Fri, 28 Jan 2011 21:58:41 +0000 (19:58 -0200)]
Don't mess with sizes when moving to other ws.

13 years agoadd docs/tree-migrating
Michael Stapelberg [Sat, 29 Jan 2011 14:10:51 +0000 (15:10 +0100)]
add docs/tree-migrating

13 years agoAdd documentation for external workspace bars
Michael Stapelberg [Thu, 27 May 2010 18:21:17 +0000 (20:21 +0200)]
Add documentation for external workspace bars

13 years agodocs/ipc: add reference to ThePub’s python library
Michael Stapelberg [Fri, 28 Jan 2011 12:07:00 +0000 (13:07 +0100)]
docs/ipc: add reference to ThePub’s python library

13 years agoFix assertion when moving out of a floating container.
Fernando Tarlá Cardoso Lemos [Fri, 28 Jan 2011 00:06:47 +0000 (22:06 -0200)]
Fix assertion when moving out of a floating container.

13 years agoDon't mess with the focus if we're not killing.
Fernando Tarlá Cardoso Lemos [Thu, 27 Jan 2011 23:09:48 +0000 (21:09 -0200)]
Don't mess with the focus if we're not killing.

If we're not killing the mapped window and we're not killing the
parent window either in tree_close, then there's no reason to try
to change the focus. This fixes focus issues when moving a
container around another container (move up, left, bottom, right).

13 years agotestcases: use the does_i3_live function
Michael Stapelberg [Fri, 28 Jan 2011 00:21:38 +0000 (01:21 +0100)]
testcases: use the does_i3_live function

13 years agofix typo in testcases/complete-run.pl
Michael Stapelberg [Fri, 28 Jan 2011 00:18:30 +0000 (01:18 +0100)]
fix typo in testcases/complete-run.pl

13 years agoimplement make clean in testcases/
Michael Stapelberg [Fri, 28 Jan 2011 00:12:56 +0000 (01:12 +0100)]
implement make clean in testcases/

13 years agotests: implement does_i3_live for regression tests
Michael Stapelberg [Fri, 28 Jan 2011 00:10:45 +0000 (01:10 +0100)]
tests: implement does_i3_live for regression tests

13 years agodisable sighandler for testsuite runs
Michael Stapelberg [Thu, 27 Jan 2011 23:48:22 +0000 (00:48 +0100)]
disable sighandler for testsuite runs

13 years agomake the sighandler handle SIGABRT
Michael Stapelberg [Thu, 27 Jan 2011 23:47:49 +0000 (00:47 +0100)]
make the sighandler handle SIGABRT

13 years agobugfix: initialize root variable earlier
Michael Stapelberg [Thu, 27 Jan 2011 23:42:55 +0000 (00:42 +0100)]
bugfix: initialize root variable earlier

13 years agoBugfix: use the global root variable, don’t get the first one (Thanks quaec)
Michael Stapelberg [Thu, 27 Jan 2011 23:41:53 +0000 (00:41 +0100)]
Bugfix: use the global root variable, don’t get the first one (Thanks quaec)

The case of an X11 server having multiple displays is handled correctly by the
code in src/mainx.c. However, due to some functions not being correctly
refactored and still getting the first screen (and also the first root window)
from the XCB connection, i3 was operating on the wrong root window.

13 years agoadd a flag to disable the signalhandler
Michael Stapelberg [Thu, 27 Jan 2011 23:31:26 +0000 (00:31 +0100)]
add a flag to disable the signalhandler

13 years agoDon't mess with the percentages in tree_flatten.
Fernando Tarlá Cardoso Lemos [Thu, 27 Jan 2011 22:58:49 +0000 (20:58 -0200)]
Don't mess with the percentages in tree_flatten.

13 years agoFix some resizing issues (thanks mseed).
Fernando Tarlá Cardoso Lemos [Thu, 27 Jan 2011 21:42:03 +0000 (19:42 -0200)]
Fix some resizing issues (thanks mseed).

13 years agoadd a regression test for the floating move thing
Michael Stapelberg [Thu, 27 Jan 2011 22:25:36 +0000 (23:25 +0100)]
add a regression test for the floating move thing

13 years agoadd a testcase for correct floating con reattaching
Michael Stapelberg [Thu, 27 Jan 2011 16:23:29 +0000 (17:23 +0100)]
add a testcase for correct floating con reattaching

13 years agobugfix: correctly move cons out of floating cons when the workspace has no other...
Michael Stapelberg [Thu, 27 Jan 2011 15:51:41 +0000 (16:51 +0100)]
bugfix: correctly move cons out of floating cons when the workspace has no other tiling cons (Thanks mseed)

13 years agobugfix: don’t assume a workspace always has tiling cons when focusing (Thanks mseed)
Michael Stapelberg [Thu, 27 Jan 2011 15:51:16 +0000 (16:51 +0100)]
bugfix: don’t assume a workspace always has tiling cons when focusing (Thanks mseed)

13 years agobugfix: resizing problem when resizing vertically on the top border (Thanks julien)
Michael Stapelberg [Thu, 27 Jan 2011 15:26:19 +0000 (16:26 +0100)]
bugfix: resizing problem when resizing vertically on the top border (Thanks julien)

13 years agorefactor some places to use con_descend_focused instead of duplicating code
Michael Stapelberg [Thu, 27 Jan 2011 15:08:25 +0000 (16:08 +0100)]
refactor some places to use con_descend_focused instead of duplicating code

13 years agore-insert floating cons next to the currently focused con of the appropriate workspace
Michael Stapelberg [Thu, 27 Jan 2011 15:04:17 +0000 (16:04 +0100)]
re-insert floating cons next to the currently focused con of the appropriate workspace

13 years agowhen re-inserting a floating con, start with a more fair percent value
Michael Stapelberg [Thu, 27 Jan 2011 14:53:14 +0000 (15:53 +0100)]
when re-inserting a floating con, start with a more fair percent value

13 years agoRandR: respect primary output
Michael Stapelberg [Thu, 27 Jan 2011 14:40:02 +0000 (15:40 +0100)]
RandR: respect primary output

13 years agoFix the percentages when moving containers.
Fernando Tarlá Cardoso Lemos [Wed, 26 Jan 2011 00:49:23 +0000 (22:49 -0200)]
Fix the percentages when moving containers.

13 years agoFix floating mode according to the new requirements.
Fernando Tarlá Cardoso Lemos [Wed, 26 Jan 2011 00:23:18 +0000 (22:23 -0200)]
Fix floating mode according to the new requirements.

At all times any given non-leaf container should have the sum of
the percentages of its children == 1.0, otherwise we'll crash on
an assertion failure.

13 years agoFix the resize algorithm I broke earlier.
Fernando Tarlá Cardoso Lemos [Wed, 26 Jan 2011 00:14:04 +0000 (22:14 -0200)]
Fix the resize algorithm I broke earlier.

The reason it was broken was that it was ok for the sum of the
percentages to be something other than 1.0. Now this is no longer
the case, the sum of the percentages must always be 1.0 or an
assertion will fail when we render the containers.

13 years agoThis parameter is no longer needed.
Fernando Tarlá Cardoso Lemos [Wed, 26 Jan 2011 00:12:43 +0000 (22:12 -0200)]
This parameter is no longer needed.

The algorithm is now always the same, doesn't matter if we're
adding or removing a container to/from its parent.

13 years agoA new logic to calculate the percentages.
Fernando Tarlá Cardoso Lemos [Tue, 25 Jan 2011 23:50:23 +0000 (21:50 -0200)]
A new logic to calculate the percentages.

It's slower, but this way we make sure that the resulting
percentages *ALWAYS* sum up to 1.0 (or as close to that as we get
with double math).

13 years agoOnly fix the percentages after we insert the container.
Fernando Tarlá Cardoso Lemos [Tue, 25 Jan 2011 23:49:22 +0000 (21:49 -0200)]
Only fix the percentages after we insert the container.

This is what floating.c does and it allows us to unify the logic that
calculates those percentages.

13 years agoCrash when we get the percentages wrong.
Fernando Tarlá Cardoso Lemos [Tue, 25 Jan 2011 23:47:37 +0000 (21:47 -0200)]
Crash when we get the percentages wrong.

Better to crash with an assertion than to get into an infinite loop.
We cold work around this, but there's a bug here and it's not a
rounding bug, so it's better not to conceal it.

13 years agoRound up as well if needed (thanks Merovius).
Fernando Tarlá Cardoso Lemos [Sat, 22 Jan 2011 17:54:49 +0000 (15:54 -0200)]
Round up as well if needed (thanks Merovius).

13 years agoBugfix: Use strdup() for the initial value of socket_path (Thanks mseed)
Michael Stapelberg [Sat, 22 Jan 2011 16:00:27 +0000 (17:00 +0100)]
Bugfix: Use strdup() for the initial value of socket_path (Thanks mseed)

13 years agoBugfix: fix restoring the orientation (Thanks Merovius/fernandotcl)
Michael Stapelberg [Fri, 21 Jan 2011 21:58:22 +0000 (22:58 +0100)]
Bugfix: fix restoring the orientation (Thanks Merovius/fernandotcl)

13 years agobugfix: you can’t unfullscreen workspaces (Thanks Merovius)
Michael Stapelberg [Fri, 21 Jan 2011 21:09:04 +0000 (22:09 +0100)]
bugfix: you can’t unfullscreen workspaces (Thanks Merovius)

13 years agoBugfix: Fix focus problems when switching workspaces by pushing the window stack...
Michael Stapelberg [Fri, 21 Jan 2011 20:49:56 +0000 (21:49 +0100)]
Bugfix: Fix focus problems when switching workspaces by pushing the window stack before mapping

13 years agoBugfix: Don’t send fake configure notify with not yet rendered rect for floating...
Michael Stapelberg [Fri, 21 Jan 2011 20:01:02 +0000 (21:01 +0100)]
Bugfix: Don’t send fake configure notify with not yet rendered rect for floating windows

This fixes a bug where opening the Xpdf find dialog when Xpdf is in fullscreen
mode would crash Xpdf due to a zero-width and zero-height ConfigureNotify rect.

13 years agoBugfix: also close empty split containers when the clients are moved away (Thanks...
Michael Stapelberg [Thu, 20 Jan 2011 09:09:43 +0000 (10:09 +0100)]
Bugfix: also close empty split containers when the clients are moved away (Thanks mseed)

Also update the testcase (which used only 'kill' before).

13 years agoBugfix: fix crash in tree_flatten (Thanks mseed)
Michael Stapelberg [Wed, 19 Jan 2011 08:31:31 +0000 (09:31 +0100)]
Bugfix: fix crash in tree_flatten (Thanks mseed)

13 years agoWhen in stacking mode with only one child, respect border styles 1pixel and none...
Michael Stapelberg [Mon, 17 Jan 2011 13:38:16 +0000 (14:38 +0100)]
When in stacking mode with only one child, respect border styles 1pixel and none (Thanks Merovius)

13 years agore-implement xkb support for detecting keyboard layout changes
Michael Stapelberg [Mon, 17 Jan 2011 13:27:49 +0000 (14:27 +0100)]
re-implement xkb support for detecting keyboard layout changes

13 years agoBugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed)
Michael Stapelberg [Mon, 17 Jan 2011 13:11:56 +0000 (14:11 +0100)]
Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed)

This fixes #292.

13 years agoSave environment-variable AFTER reading the configfile
Axel Wagner [Tue, 11 Jan 2011 04:25:04 +0000 (05:25 +0100)]
Save environment-variable AFTER reading the configfile

13 years agoUse I3SOCK-environment-variable
Axel Wagner [Tue, 11 Jan 2011 03:39:48 +0000 (04:39 +0100)]
Use I3SOCK-environment-variable

13 years agofix some memory leaks when user passes command line arguments twice (Thanks Tiago)
Michael Stapelberg [Wed, 12 Jan 2011 09:12:24 +0000 (10:12 +0100)]
fix some memory leaks when user passes command line arguments twice (Thanks Tiago)

13 years agoFix switching to a workspace on a different output
Michael Stapelberg [Sat, 8 Jan 2011 11:03:03 +0000 (12:03 +0100)]
Fix switching to a workspace on a different output

13 years agoipc: adapt dump-asy.pl for the new orientation format
Michael Stapelberg [Fri, 7 Jan 2011 23:45:10 +0000 (00:45 +0100)]
ipc: adapt dump-asy.pl for the new orientation format

13 years agoBugfix: Don’t use ->old_parent for floating cons (Thanks eelvex)
Michael Stapelberg [Fri, 7 Jan 2011 23:44:03 +0000 (00:44 +0100)]
Bugfix: Don’t use ->old_parent for floating cons (Thanks eelvex)

Instead, we attach them to their workspace when toggling back to tiling. This
makes more sense; afterall, floating clients are always directly below a
CT_WORKSPACE container.

13 years agofix a problem with workspace switching when the focus got to the target workspace
Michael Stapelberg [Fri, 7 Jan 2011 23:38:10 +0000 (00:38 +0100)]
fix a problem with workspace switching when the focus got to the target workspace

This could explain some strange effects where workspaces would just stay blank.
We’ll see.

13 years agoBugfix: Look for cons to focus *starting* at the ws, not beneath the ws (Thanks mseed)
Michael Stapelberg [Fri, 7 Jan 2011 23:10:49 +0000 (00:10 +0100)]
Bugfix: Look for cons to focus *starting* at the ws, not beneath the ws (Thanks mseed)

This should fix #286.

13 years agoBugfix: Correctly maintain focus when setting a workspace to floating
Michael Stapelberg [Fri, 7 Jan 2011 23:10:30 +0000 (00:10 +0100)]
Bugfix: Correctly maintain focus when setting a workspace to floating

13 years agoBugfix: Correctly move to other workspaces when a floating window is focused on the...
Michael Stapelberg [Fri, 7 Jan 2011 22:56:32 +0000 (23:56 +0100)]
Bugfix: Correctly move to other workspaces when a floating window is focused on the target ws (Thanks mseed)

13 years agoImplement tree flattening to automatically solve situations of redundant chains of...
Michael Stapelberg [Fri, 7 Jan 2011 21:21:41 +0000 (22:21 +0100)]
Implement tree flattening to automatically solve situations of redundant chains of split containers

This should fix the move problems. See comment of tree_flatten() for a little
example.

13 years agochange many LOG/printf messages to use DLOG
Michael Stapelberg [Fri, 7 Jan 2011 19:58:58 +0000 (20:58 +0100)]
change many LOG/printf messages to use DLOG

13 years agoipc: change 'orientation' to human readable string instead of raw integer value
Michael Stapelberg [Fri, 7 Jan 2011 19:48:01 +0000 (20:48 +0100)]
ipc: change 'orientation' to human readable string instead of raw integer value

13 years agofix enum value
Michael Stapelberg [Fri, 7 Jan 2011 02:01:58 +0000 (03:01 +0100)]
fix enum value

13 years agoBugfix: fix fullscreen mode for floating windows
Michael Stapelberg [Fri, 7 Jan 2011 01:50:35 +0000 (02:50 +0100)]
Bugfix: fix fullscreen mode for floating windows

13 years agoBugfix: randr: Don’t close container if it was not initialized before
Michael Stapelberg [Thu, 6 Jan 2011 13:35:04 +0000 (14:35 +0100)]
Bugfix: randr: Don’t close container if it was not initialized before

13 years agoRandR: use the next unused workspace instead of fixed counting
Michael Stapelberg [Tue, 4 Jan 2011 23:26:23 +0000 (00:26 +0100)]
RandR: use the next unused workspace instead of fixed counting

13 years agoAlso initialize output->con when using neither RandR nor Xinerama
Michael Stapelberg [Tue, 4 Jan 2011 23:19:51 +0000 (00:19 +0100)]
Also initialize output->con when using neither RandR nor Xinerama

13 years agoRe-Implement support for RandR changes
Michael Stapelberg [Tue, 4 Jan 2011 23:16:10 +0000 (00:16 +0100)]
Re-Implement support for RandR changes

13 years agoretab! randr.c
Michael Stapelberg [Tue, 4 Jan 2011 21:51:42 +0000 (22:51 +0100)]
retab! randr.c

13 years agoBugfix: Correctly change focus after closing floating containers (Thanks litemotiv!)
Michael Stapelberg [Tue, 4 Jan 2011 21:40:05 +0000 (22:40 +0100)]
Bugfix: Correctly change focus after closing floating containers (Thanks litemotiv!)

13 years agofix memleak: free struct Window members
Michael Stapelberg [Tue, 4 Jan 2011 21:39:45 +0000 (22:39 +0100)]
fix memleak: free struct Window members

13 years agofix memleak: free X state structure
Michael Stapelberg [Tue, 4 Jan 2011 21:39:24 +0000 (22:39 +0100)]
fix memleak: free X state structure

13 years agouse sstrdup() instead of strdup()
Michael Stapelberg [Tue, 4 Jan 2011 21:39:13 +0000 (22:39 +0100)]
use sstrdup() instead of strdup()

13 years agofix memleak: free con->name before overwriting it
Michael Stapelberg [Tue, 4 Jan 2011 21:38:33 +0000 (22:38 +0100)]
fix memleak: free con->name before overwriting it

13 years agocmdparse: free strings
Michael Stapelberg [Tue, 4 Jan 2011 21:37:50 +0000 (22:37 +0100)]
cmdparse: free strings

13 years agofix small memory leak (unused ->name)
Michael Stapelberg [Tue, 4 Jan 2011 21:15:52 +0000 (22:15 +0100)]
fix small memory leak (unused ->name)

13 years agoBugfix: Also change focus when the killed container was focused (Thanks fernandotcl)
Michael Stapelberg [Sun, 2 Jan 2011 17:08:45 +0000 (18:08 +0100)]
Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl)

13 years agoAdd font-option to i3-input
Axel Wagner [Sat, 1 Jan 2011 21:11:44 +0000 (22:11 +0100)]
Add font-option to i3-input

13 years agoAdd forgetful restart to sighandler
Axel Wagner [Thu, 30 Dec 2010 20:43:34 +0000 (21:43 +0100)]
Add forgetful restart to sighandler

13 years agoRetab sighandler.c
Axel Wagner [Thu, 30 Dec 2010 20:15:55 +0000 (21:15 +0100)]
Retab sighandler.c

13 years agoPort sighandler to tree-branch
Axel Wagner [Thu, 30 Dec 2010 20:09:32 +0000 (21:09 +0100)]
Port sighandler to tree-branch

13 years agoFix dragging floating containers / click handling
Michael Stapelberg [Fri, 31 Dec 2010 00:38:17 +0000 (01:38 +0100)]
Fix dragging floating containers / click handling

13 years agoFor floating mode on workspace level, create a container around the content (Thanks...
Michael Stapelberg [Thu, 30 Dec 2010 22:09:18 +0000 (23:09 +0100)]
For floating mode on workspace level, create a container around the content (Thanks Merovius)

Like when setting a workspace to stacked, we need to create a new container
around the content and set *that* to floating.

13 years agoBugfix: Correctly change focus when closing a split-container
Michael Stapelberg [Thu, 30 Dec 2010 22:01:58 +0000 (23:01 +0100)]
Bugfix: Correctly change focus when closing a split-container

The problem was i3 leaving an invalid focus pointer valid (after killing the
container) because the container itself is not mapped (if it has no x11 window,
for example split containers).

13 years agoBugfix: Don’t redistribute resize percentage values when closing floating (!) windows...
Michael Stapelberg [Thu, 30 Dec 2010 01:39:14 +0000 (02:39 +0100)]
Bugfix: Don’t redistribute resize percentage values when closing floating (!) windows (Thanks Merovius) (+testcase)

13 years agoBugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none
Michael Stapelberg [Tue, 28 Dec 2010 18:54:56 +0000 (19:54 +0100)]
Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none

13 years agoFix resize handling on click on borders (did not correctly use orientation)
Michael Stapelberg [Tue, 28 Dec 2010 15:25:34 +0000 (16:25 +0100)]
Fix resize handling on click on borders (did not correctly use orientation)

13 years agoBugfix: Don’t focus next window if the window was not mapped at the moment (on a...
Michael Stapelberg [Tue, 28 Dec 2010 01:27:11 +0000 (02:27 +0100)]
Bugfix: Don’t focus next window if the window was not mapped at the moment (on a different ws)

13 years agoBugfix: store and properly load workspace order when restarting
Michael Stapelberg [Mon, 27 Dec 2010 21:28:59 +0000 (22:28 +0100)]
Bugfix: store and properly load workspace order when restarting

13 years agoDefault to a file in /tmp for the restart state.
Fernando Tarlá Cardoso Lemos [Wed, 1 Dec 2010 02:14:08 +0000 (00:14 -0200)]
Default to a file in /tmp for the restart state.

The file is now created in /tmp using the process PID and the
username of the user running i3. The restart state file is only
loaded when restarting (the --restart option is appended to the
command line prior to the restart). That means that renaming the
old state file with the ".old" extension is no longer needed.

This "--restart" switch is supposed to be only used by i3. The
"-L" switch can be used to load a layout (and not delete it
afterwards). We unlink the state file after we load it so that
we don't keep cruft in /tmp or try to restart from an old config
file if restart_state is set.