Michael Stapelberg
2d82868a1a
tests: implement does_i3_live for regression tests
2011-01-28 01:10:45 +01:00
Michael Stapelberg
0e8fdab302
disable sighandler for testsuite runs
2011-01-28 00:48:22 +01:00
Michael Stapelberg
5b6ef3e665
make the sighandler handle SIGABRT
2011-01-28 00:47:49 +01:00
Michael Stapelberg
f395c141c8
bugfix: initialize root variable earlier
2011-01-28 00:42:55 +01:00
Michael Stapelberg
7b01bc5eb7
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.
2011-01-28 00:41:53 +01:00
Michael Stapelberg
79bbde8766
add a flag to disable the signalhandler
2011-01-28 00:31:26 +01:00
Fernando Tarlá Cardoso Lemos
b29af954f6
Don't mess with the percentages in tree_flatten.
2011-01-28 00:12:26 +01:00
Fernando Tarlá Cardoso Lemos
5f4123f842
Fix some resizing issues (thanks mseed).
2011-01-27 23:42:37 +01:00
Michael Stapelberg
36e20a93a0
add a regression test for the floating move thing
2011-01-27 23:25:36 +01:00
Michael Stapelberg
b2ba02f801
add a testcase for correct floating con reattaching
2011-01-27 17:23:29 +01:00
Michael Stapelberg
676afce540
bugfix: correctly move cons out of floating cons when the workspace has no other tiling cons (Thanks mseed)
2011-01-27 16:51:41 +01:00
Michael Stapelberg
334e41daa4
bugfix: don’t assume a workspace always has tiling cons when focusing (Thanks mseed)
2011-01-27 16:51:16 +01:00
Michael Stapelberg
3e08ceaff9
bugfix: resizing problem when resizing vertically on the top border (Thanks julien)
2011-01-27 16:26:19 +01:00
Michael Stapelberg
3383437705
refactor some places to use con_descend_focused instead of duplicating code
2011-01-27 16:09:14 +01:00
Michael Stapelberg
f462a9a215
re-insert floating cons next to the currently focused con of the appropriate workspace
2011-01-27 16:04:17 +01:00
Michael Stapelberg
2f5d111936
when re-inserting a floating con, start with a more fair percent value
2011-01-27 15:53:14 +01:00
Michael Stapelberg
fe851b85f0
RandR: respect primary output
2011-01-27 15:40:02 +01:00
Fernando Tarlá Cardoso Lemos
432563d6e7
Fix the percentages when moving containers.
2011-01-27 13:00:14 +01:00
Fernando Tarlá Cardoso Lemos
07eb20851f
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.
2011-01-27 13:00:14 +01:00
Fernando Tarlá Cardoso Lemos
568cafd4ec
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.
2011-01-27 13:00:14 +01:00
Fernando Tarlá Cardoso Lemos
bc82fc7e9f
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.
2011-01-27 13:00:14 +01:00
Fernando Tarlá Cardoso Lemos
45227fba54
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).
2011-01-27 13:00:14 +01:00
Fernando Tarlá Cardoso Lemos
a93f4643ec
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.
2011-01-27 13:00:14 +01:00
Fernando Tarlá Cardoso Lemos
89917976c7
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.
2011-01-27 13:00:14 +01:00
Axel Wagner
4a10a2edba
Bugfix: Use free-workspaces() in xcb-cleanup (thx dothebart)
2011-01-26 12:58:15 +01:00
Axel Wagner
1cf054f2b4
Bugfix: free() output-names seperately (thx dothebart)
2011-01-26 12:58:11 +01:00
Axel Wagner
ff925f58e8
Bugfix: Use free-workspaces() in xcb-cleanup (thx dothebart)
2011-01-26 12:57:44 +01:00
Axel Wagner
8fa720d6b9
Bugfix: free() output-names seperately (thx dothebart)
2011-01-26 12:57:38 +01:00
Axel Wagner
9bcc6216c8
Bugfix: Also free() the head of slist/tailq (Thx dothebart)
2011-01-26 02:00:55 +01:00
Axel Wagner
e9ef6d186a
Bugfix: free() text, after drawing it (thx dothebart)
2011-01-26 02:00:51 +01:00
Axel Wagner
51ffd4c3dd
Bugfix: free() workspace-list of outputs seperately (thx dothebart)
2011-01-26 02:00:46 +01:00
Axel Wagner
17a795aba1
Remove superflous FREE_SLIST
2011-01-26 02:00:40 +01:00
Axel Wagner
31863efc04
Bugfix: free() workspace-names seperately (thx dothebart)
2011-01-26 02:00:29 +01:00
Axel Wagner
9c7db93993
Bugfix: free() command-string, after it is not needed anymore
2011-01-26 02:00:25 +01:00
Axel Wagner
18e6caf0a9
Bugfix: Test for outputs == NULL
2011-01-26 02:00:20 +01:00
Axel Wagner
dc7cfeaa4f
Bugfix: Also free() the head of slist/tailq (Thx dothebart)
2011-01-26 01:54:36 +01:00
Axel Wagner
d9f35859fa
Bugfix: free() text, after drawing it (thx dothebart)
2011-01-26 01:54:36 +01:00
Axel Wagner
9d22b29166
Bugfix: free() workspace-list of outputs seperately (thx dothebart)
2011-01-26 01:54:36 +01:00
Axel Wagner
7a7faff96d
Remove superflous FREE_SLIST
2011-01-26 01:54:36 +01:00
Axel Wagner
da1b65dd86
Bugfix: free() workspace-names seperately (thx dothebart)
2011-01-26 01:54:36 +01:00
Axel Wagner
cc71c77329
Bugfix: free() command-string, after it is not needed anymore
2011-01-26 01:54:36 +01:00
Axel Wagner
94ca5c73cc
Bugfix: Test for outputs == NULL
2011-01-26 01:54:36 +01:00
Fernando Tarlá Cardoso Lemos
ceff1487da
Round up as well if needed (thanks Merovius).
2011-01-23 13:22:11 +01:00
Fernando Tarlá Cardoso Lemos
d04da62bb4
Round up as well if needed (thanks Merovius).
2011-01-23 13:22:05 +01:00
Fernando Tarlá Cardoso Lemos
485555ef72
Round up as well if needed (thanks Merovius).
2011-01-23 13:21:33 +01:00
Raphael Kubo da Costa
9223a39a65
Build fix: Explicitly include stdint.h before cfgparse.tab.h
...
cfgparse.tab.h uses uint32_t, which is defined in stdint.h.
Should fix the build of 3.ε-bf2 on FreeBSD.
Signed-off-by: Raphael Kubo da Costa <kubito@gmail.com>
2011-01-23 13:19:46 +01:00
Raphael Kubo da Costa
ca296c1c8b
Build fix: Explicitly include stdint.h before cfgparse.tab.h
...
cfgparse.tab.h uses uint32_t, which is defined in stdint.h.
Should fix the build of 3.ε-bf2 on FreeBSD.
Signed-off-by: Raphael Kubo da Costa <kubito@gmail.com>
2011-01-23 13:19:25 +01:00
Axel Wagner
c9ee3eb21e
Change default socketpath to /tmp/i3-ipc.sock
2011-01-22 17:41:24 +01:00
Michael Stapelberg
d9dd245bcc
Bugfix: Use strdup() for the initial value of socket_path (Thanks mseed)
2011-01-22 17:00:27 +01:00
Michael Stapelberg
d9bfd8843f
Bugfix: fix restoring the orientation (Thanks Merovius/fernandotcl)
2011-01-21 22:58:22 +01:00