Commit Graph

2394 Commits

Author SHA1 Message Date
432563d6e7 Fix the percentages when moving containers. 2011-01-27 13:00:14 +01:00
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
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
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
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
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
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
4a10a2edba Bugfix: Use free-workspaces() in xcb-cleanup (thx dothebart) 2011-01-26 12:58:15 +01:00
1cf054f2b4 Bugfix: free() output-names seperately (thx dothebart) 2011-01-26 12:58:11 +01:00
ff925f58e8 Bugfix: Use free-workspaces() in xcb-cleanup (thx dothebart) 2011-01-26 12:57:44 +01:00
8fa720d6b9 Bugfix: free() output-names seperately (thx dothebart) 2011-01-26 12:57:38 +01:00
9bcc6216c8 Bugfix: Also free() the head of slist/tailq (Thx dothebart) 2011-01-26 02:00:55 +01:00
e9ef6d186a Bugfix: free() text, after drawing it (thx dothebart) 2011-01-26 02:00:51 +01:00
51ffd4c3dd Bugfix: free() workspace-list of outputs seperately (thx dothebart) 2011-01-26 02:00:46 +01:00
17a795aba1 Remove superflous FREE_SLIST 2011-01-26 02:00:40 +01:00
31863efc04 Bugfix: free() workspace-names seperately (thx dothebart) 2011-01-26 02:00:29 +01:00
9c7db93993 Bugfix: free() command-string, after it is not needed anymore 2011-01-26 02:00:25 +01:00
18e6caf0a9 Bugfix: Test for outputs == NULL 2011-01-26 02:00:20 +01:00
dc7cfeaa4f Bugfix: Also free() the head of slist/tailq (Thx dothebart) 2011-01-26 01:54:36 +01:00
d9f35859fa Bugfix: free() text, after drawing it (thx dothebart) 2011-01-26 01:54:36 +01:00
9d22b29166 Bugfix: free() workspace-list of outputs seperately (thx dothebart) 2011-01-26 01:54:36 +01:00
7a7faff96d Remove superflous FREE_SLIST 2011-01-26 01:54:36 +01:00
da1b65dd86 Bugfix: free() workspace-names seperately (thx dothebart) 2011-01-26 01:54:36 +01:00
cc71c77329 Bugfix: free() command-string, after it is not needed anymore 2011-01-26 01:54:36 +01:00
94ca5c73cc Bugfix: Test for outputs == NULL 2011-01-26 01:54:36 +01:00
ceff1487da Round up as well if needed (thanks Merovius). 2011-01-23 13:22:11 +01:00
d04da62bb4 Round up as well if needed (thanks Merovius). 2011-01-23 13:22:05 +01:00
485555ef72 Round up as well if needed (thanks Merovius). 2011-01-23 13:21:33 +01:00
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
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
c9ee3eb21e Change default socketpath to /tmp/i3-ipc.sock 2011-01-22 17:41:24 +01:00
d9dd245bcc Bugfix: Use strdup() for the initial value of socket_path (Thanks mseed) 2011-01-22 17:00:27 +01:00
d9bfd8843f Bugfix: fix restoring the orientation (Thanks Merovius/fernandotcl) 2011-01-21 22:58:22 +01:00
ad95d5bb1f bugfix: you can’t unfullscreen workspaces (Thanks Merovius) 2011-01-21 22:09:04 +01:00
cbf4fcb9b5 Bugfix: Fix focus problems when switching workspaces by pushing the window stack before mapping 2011-01-21 21:49:56 +01:00
81ff1f976d 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.
2011-01-21 21:01:02 +01:00
1fecbb3e5a Bugfix: also close empty split containers when the clients are moved away (Thanks mseed)
Also update the testcase (which used only 'kill' before).
2011-01-20 10:09:43 +01:00
2a968135e5 update website for 3.ε-bf2 2011-01-19 21:39:50 +01:00
5a26ef0fce add debian/source/format 2011-01-19 21:33:38 +01:00
64b535a7aa fix typo in release notes 2011-01-19 21:28:57 +01:00
922f60260f update debian/ for 3.ε-bf2 2011-01-19 21:26:13 +01:00
94993e11d1 add release notes for 3.ε-bf2 2011-01-19 21:23:30 +01:00
3fe4146e24 Bugfix: fix crash in tree_flatten (Thanks mseed) 2011-01-19 09:31:31 +01:00
0eb5eb34cd When in stacking mode with only one child, respect border styles 1pixel and none (Thanks Merovius) 2011-01-17 14:38:16 +01:00
ae4331113e re-implement xkb support for detecting keyboard layout changes 2011-01-17 14:27:49 +01:00
d6d4c962f4 Bugfix: Call mark_unmapped() on floating nodes aswell (Thanks mseed)
This fixes #292.
2011-01-17 14:11:56 +01:00
1369e36d7c Use tree-command for workspace-switching 2011-01-14 19:16:52 +01:00
2064df9e5d Display socket-path in connection-error-message 2011-01-14 17:33:58 +01:00
4762152e1c Display socket-path in connection-error-message 2011-01-14 17:33:40 +01:00
92a038dd25 Save environment-variable AFTER reading the configfile 2011-01-12 10:16:11 +01:00