]>
git.sur5r.net Git - i3/i3/log
Michael Stapelberg [Mon, 4 Jul 2011 15:09:52 +0000 (17:09 +0200)]
Implement 'focus floating', 'focus tiling' and 'focus mode_toggle' (+test +docs)
Michael Stapelberg [Mon, 4 Jul 2011 11:41:02 +0000 (13:41 +0200)]
Bugfix: Only set ENTER_WINDOW event mask for mapped windows (fixes focus problems)
Fixes focus problems when switching to empty workspaces or when going in/out of
fullscreen.
Michael Stapelberg [Thu, 30 Jun 2011 23:10:43 +0000 (01:10 +0200)]
Bugfix: Correctly revert floating focus when killing the last floating window (+test)
Michael Stapelberg [Thu, 30 Jun 2011 22:37:30 +0000 (00:37 +0200)]
Bugfix: testcase was still using 'mode floating' instead of 'floating enable'
Michael Stapelberg [Thu, 16 Jun 2011 16:58:49 +0000 (18:58 +0200)]
config: change order, normalize comments, more comments, remove advanced/experimental bindings
Michael Stapelberg [Mon, 13 Jun 2011 15:42:59 +0000 (17:42 +0200)]
Bugfix: Fix floating assignments, extend test for the assign command (Thanks Tucos)
Michael Stapelberg [Sun, 12 Jun 2011 11:01:16 +0000 (13:01 +0200)]
add *.gcda and *.gcno (code coverage files) to .gitignore
Michael Stapelberg [Sat, 11 Jun 2011 17:15:16 +0000 (19:15 +0200)]
Don’t force wrapping when focusing in a direction would work (+test)
Think of the following layout:
-------------
| tab | |
| con | win |
| | |
-------------
The tabbed container on the left has two children. Assume you have focused the
second/right child in the tabbed container. i3 used to focus the first/left
container of the tabbed container when using 'focus right' (it wrapped focus).
With this commit, the default behaviour is to instead focus the window on the
right of the screen.
The intention is to make focus switching more intuitive, especially with tabbed
containers supporting 'focus left'/'focus right' in tree. You should end up
using less 'focus parent' :).
You can force the old behaviour with 'force_focus_wrapping true' in your
config.
Code coverage is 62.5% with this commit.
Michael Stapelberg [Sat, 11 Jun 2011 12:39:13 +0000 (14:39 +0200)]
default config: remove ipc-socket directive, has no effect anyways
The ipc socket directive needs a path, otherwise it’s useless.
A socket will be created in any case.
Michael Stapelberg [Sat, 11 Jun 2011 12:36:09 +0000 (14:36 +0200)]
Bugfix: Correctly attach new output cons to the root con (Thanks mseed)
Michael Stapelberg [Fri, 10 Jun 2011 16:27:20 +0000 (18:27 +0200)]
Implement 'fullscreen global'
Michael Stapelberg [Fri, 10 Jun 2011 14:15:52 +0000 (16:15 +0200)]
Implement 'border toggle' (+test)
Michael Stapelberg [Fri, 10 Jun 2011 14:03:59 +0000 (16:03 +0200)]
Implement 'workspace next/prev' (+test)
Michael Stapelberg [Fri, 10 Jun 2011 13:16:05 +0000 (15:16 +0200)]
userguide: document resizing with a mode
Michael Stapelberg [Fri, 10 Jun 2011 13:14:42 +0000 (15:14 +0200)]
userguide: document workspace_layout
Michael Stapelberg [Fri, 10 Jun 2011 11:00:24 +0000 (13:00 +0200)]
debian: fix build-deps for recent debian systems
Michael Stapelberg [Fri, 10 Jun 2011 00:38:07 +0000 (02:38 +0200)]
Re-implement the 'mode' command
Michael Stapelberg [Fri, 10 Jun 2011 00:27:14 +0000 (02:27 +0200)]
default config: don’t use /tmp/nestedcons, better description of ipc-socket
Michael Stapelberg [Fri, 10 Jun 2011 00:25:14 +0000 (02:25 +0200)]
cmdparse: s/direction/split_direction to be more clear
Michael Stapelberg [Fri, 10 Jun 2011 00:15:31 +0000 (02:15 +0200)]
CONFIG BREAK: Rename 'restore' to 'append_layout'
Michael Stapelberg [Fri, 10 Jun 2011 00:06:47 +0000 (02:06 +0200)]
CONFIG BREAK: rename 'mode floating/tiling' to 'floating enable/disable'
The three different variants now:
floating enable
floating disable
floating toggle
Michael Stapelberg [Thu, 9 Jun 2011 23:36:33 +0000 (01:36 +0200)]
BREAKS CONFIG: rename 'level up' to 'focus parent'
…and 'level down' to 'focus child'. More intuitive than the old command names.
Michael Stapelberg [Thu, 9 Jun 2011 23:16:29 +0000 (01:16 +0200)]
config: more descriptive comments
Michael Stapelberg [Wed, 8 Jun 2011 21:34:08 +0000 (23:34 +0200)]
Parse multiple criteria in commands (+test), better error message for 'focus'
Michael Stapelberg [Wed, 8 Jun 2011 18:49:49 +0000 (20:49 +0200)]
CONFIG BREAK: kick the 'next'/'prev' commands, introduce 'focus left' etc.
Instead of the cryptic next/prev commands, we now provide an argument to the
focus command. Userguide and default config is updated.
Michael Stapelberg [Fri, 3 Jun 2011 00:05:34 +0000 (02:05 +0200)]
add testcase for the fullscreen restart problem of the previous commit
Michael Stapelberg [Thu, 2 Jun 2011 23:48:55 +0000 (01:48 +0200)]
Bugfix: Don’t break focus stack when inplace restarting with fullscreen windows (Thanks mike)
Michael Stapelberg [Thu, 2 Jun 2011 15:21:38 +0000 (17:21 +0200)]
Make workspace_layout handle all cons at workspace level, not only the first one (+test)
This makes opening new windows on workspace level and moving windows to the
right/left more like in the old i3.
Michael Stapelberg [Thu, 2 Jun 2011 15:12:18 +0000 (17:12 +0200)]
ipc: make 'layout' a string
Michael Stapelberg [Sun, 29 May 2011 12:39:41 +0000 (14:39 +0200)]
Bugfix: RandR: Correctly assign focused workspaces to outputs
Fixes: #399
Michael Stapelberg [Sun, 29 May 2011 11:20:12 +0000 (13:20 +0200)]
testcase: correct window names (trivial)
Michael Stapelberg [Sun, 29 May 2011 11:03:36 +0000 (13:03 +0200)]
Bugfix: rendering cache also needs to consider con->pixmap_recreated for borders
Michael Stapelberg [Sun, 29 May 2011 10:32:01 +0000 (12:32 +0200)]
x: fix race condition where the new event mask was not set directly after reparenting
Michael Stapelberg [Sun, 29 May 2011 10:29:49 +0000 (12:29 +0200)]
call tree_render() only after commands which require it
Saves one call of tree_render for exec, for example
Michael Stapelberg [Sun, 29 May 2011 10:20:09 +0000 (12:20 +0200)]
Bugfix: Set pixmap_recreated before rendering the decoration
Michael Stapelberg [Sun, 29 May 2011 09:46:01 +0000 (11:46 +0200)]
x: only re-render the tree in handle_normal_hints when they actually changed
Michael Stapelberg [Sun, 29 May 2011 09:31:22 +0000 (11:31 +0200)]
x: first create/render pixmap, then change window sizes (reduces flickering for new windows)
Especially in stacked cons.
Michael Stapelberg [Sat, 28 May 2011 20:12:47 +0000 (22:12 +0200)]
add release notes for tree-pr3
Michael Stapelberg [Sat, 28 May 2011 20:12:06 +0000 (22:12 +0200)]
makefile: include yajl-fallback in 'make dist'
Michael Stapelberg [Sat, 28 May 2011 19:58:58 +0000 (21:58 +0200)]
update the userguide for tree (not complete yet)
Michael Stapelberg [Wed, 25 May 2011 19:00:53 +0000 (21:00 +0200)]
Bugfix: Check swallows before assignments when managing windows (Thanks julien)
Fixes #395 (empty containers on restart when assigned windows are visible)
Michael Stapelberg [Wed, 25 May 2011 19:00:46 +0000 (21:00 +0200)]
gitignore: ignore tarballs
Michael Stapelberg [Wed, 25 May 2011 18:47:47 +0000 (20:47 +0200)]
remove unused code from manage.c
Michael Stapelberg [Wed, 25 May 2011 18:16:14 +0000 (20:16 +0200)]
tests: explicitly declare done_testing in subtest
Michael Stapelberg [Wed, 25 May 2011 18:15:52 +0000 (20:15 +0200)]
tests: use Test:Most instead of Test:More
apt-get install libtest-most-perl
Michael Stapelberg [Tue, 24 May 2011 20:56:28 +0000 (22:56 +0200)]
tests: add test for the 'assign' feature
Increases line coverage from 60.9% to 61.5%
Michael Stapelberg [Tue, 24 May 2011 20:56:06 +0000 (22:56 +0200)]
fix typo in t/65-for_window.t
Michael Stapelberg [Tue, 24 May 2011 20:21:05 +0000 (22:21 +0200)]
tests: make t/59-socketpaths exit gracefully
Increases reported line coverage from 60.7% to 60.9%
Michael Stapelberg [Mon, 23 May 2011 16:41:17 +0000 (18:41 +0200)]
Implement assignments for (named) workspaces, with '~' compatibility (floating)
Michael Stapelberg [Sun, 22 May 2011 21:32:59 +0000 (23:32 +0200)]
Bugfix: Free pixmaps when killing windows (Thanks Mike)
Michael Stapelberg [Sun, 22 May 2011 20:15:43 +0000 (22:15 +0200)]
retab! cfgparse.l
Michael Stapelberg [Sun, 22 May 2011 20:08:40 +0000 (22:08 +0200)]
cfgparse.l: kill a few states by using the stack
Michael Stapelberg [Sun, 22 May 2011 19:48:25 +0000 (21:48 +0200)]
cleanup cfgparse lexer/parser (ignore whitespace, solves conflicts)
Michael Stapelberg [Sun, 22 May 2011 19:42:34 +0000 (21:42 +0200)]
forgot to remove unused TOK_ATTACH token from lexer
Michael Stapelberg [Sun, 22 May 2011 19:26:50 +0000 (21:26 +0200)]
cleanup cmdparse lexer/parser (ignore whitespace, solves conflicts)
Michael Stapelberg [Mon, 16 May 2011 20:03:07 +0000 (22:03 +0200)]
tests: also test multiple commands in for_window
Increases branch coverage to 49.1%
Michael Stapelberg [Mon, 16 May 2011 19:45:30 +0000 (21:45 +0200)]
tests: add test for the for_window config directive, use separate config for tests
This test increases code coverage to 60.7%
Michael Stapelberg [Mon, 16 May 2011 18:51:29 +0000 (20:51 +0200)]
Bugfix: fix crash when disabling floating mode
Michael Stapelberg [Sun, 15 May 2011 18:10:25 +0000 (20:10 +0200)]
Time Lord technology: for_window config directive to run arbitrary cmds
An example to set all XTerms floating:
for_window [class="XTerm"] mode floating
To make all urxvts use a 1-pixel border:
for_window [class="urxvt"] border 1pixel
A less useful, but rather funny example:
for_window [title="x200: ~/work"] mode floating
The commands are not completely arbitrary. The commands above were tested,
others may need some fixing. Internally, windows are compared against your
criteria (class, title, …) when they are initially managed and whenever one of
the relevant values change. Then, the specified command is run *once* (per
window). It gets prefixed with a criteria to make it match only the specific
window that triggered it. So, if you configure "mode floating", i3 runs
something like '[id="
8393923 "] mode floating'.
Michael Stapelberg [Sun, 15 May 2011 17:43:35 +0000 (19:43 +0200)]
Introduce HANDLE_EMPTY_MATCH macro to simplify command handlers in cmdparse.y
Michael Stapelberg [Sat, 14 May 2011 20:38:19 +0000 (22:38 +0200)]
Remove old code from randr.c and workspace.c
Michael Stapelberg [Sat, 14 May 2011 20:34:34 +0000 (22:34 +0200)]
Bugfix: Fix initialization / assignments when RandR is missing
Michael Stapelberg [Sat, 14 May 2011 20:13:29 +0000 (22:13 +0200)]
re-implement assignments of workspace to specific outputs
Michael Stapelberg [Sat, 14 May 2011 20:11:09 +0000 (22:11 +0200)]
introduce the NODES_FOREACH and GREP_FIRST macros
Michael Stapelberg [Sat, 14 May 2011 18:04:34 +0000 (20:04 +0200)]
x.c: disable some of the debug output
Michael Stapelberg [Fri, 13 May 2011 19:57:45 +0000 (21:57 +0200)]
Correctly re-implement scrolling on window decorations
Got lost when refactoring the click handling in
24463718cc2ae6d44d75104bb8ade636985ff86c
Fixes: #390
Michael Stapelberg [Fri, 13 May 2011 19:29:01 +0000 (21:29 +0200)]
Bugfix: Attach new cons at the correct place when a floating con is focused (+test) (Thanks fernandotcl)
New containers were previously attached directly to the workspace instead of to
the previously focused place in the workspace (for example a stacked con).
Fixes: #376
Michael Stapelberg [Fri, 13 May 2011 19:18:20 +0000 (21:18 +0200)]
Fix kill command with trailing whitespace
Michael Stapelberg [Fri, 13 May 2011 18:41:03 +0000 (20:41 +0200)]
Argument for 'kill' for killing a specific window (now default) or the whole client (+test)
Use 'kill window' to kill a specific window (for example only one specific
popup), use 'kill client' to kill the whole application (or X11 connection to
be specific).
Michael Stapelberg [Fri, 13 May 2011 17:53:19 +0000 (19:53 +0200)]
Bugfix: When focusing the next floating window, descend the CT_FLOATING_CON
makes t/35-floating-focus.t pass again
Michael Stapelberg [Fri, 13 May 2011 17:27:18 +0000 (19:27 +0200)]
t/35-floating-focus: rewrite testcase to use windows instead of empty cons
Michael Stapelberg [Fri, 13 May 2011 15:03:52 +0000 (17:03 +0200)]
Bugfix: set WM_STATE to WITHDRAWN when an app unmaps their window(s) (+test)
Fixes: #362
Michael Stapelberg [Fri, 13 May 2011 15:03:15 +0000 (17:03 +0200)]
Bugfix: Fix the WANT_QSTRING state
Michael Stapelberg [Thu, 12 May 2011 20:24:52 +0000 (22:24 +0200)]
Bugfix: Fix focus follows mouse for non-default layout cons (Thanks phnom)
Fixes: #361
Michael Stapelberg [Thu, 12 May 2011 15:20:00 +0000 (17:20 +0200)]
s/seperate/separate (Thanks Jon)
Michael Stapelberg [Thu, 12 May 2011 05:22:17 +0000 (07:22 +0200)]
Bugfix: Ignore focus when attaching cons while restoring the layout
Fixes: #369
Michael Stapelberg [Thu, 12 May 2011 05:09:06 +0000 (07:09 +0200)]
Bugfix: Correct string/quoted string parsing for the commands exec, workspace, nop, restore and mark (Thanks SardemFF7)
Fixes: #380
Michael Stapelberg [Thu, 12 May 2011 04:58:09 +0000 (06:58 +0200)]
Bugfix: Don’t append the --restart parameter on each restart (Thanks aniou)
Fixes: #384
Michael Stapelberg [Wed, 11 May 2011 20:45:20 +0000 (22:45 +0200)]
Bugfix: Don’t crash when dock clients set the urgency hint (+testcase)
Michael Stapelberg [Wed, 11 May 2011 20:01:09 +0000 (22:01 +0200)]
Bugfix: Don’t fill split cons etc. with client background color (fixes nested decoration rendering)
Fixes: #359
Michael Stapelberg [Wed, 11 May 2011 18:45:56 +0000 (20:45 +0200)]
Bugfix: Restore border_style when restarting inplace (Thanks aniou)
Fixes #385.
Michael Stapelberg [Wed, 11 May 2011 18:39:18 +0000 (20:39 +0200)]
ipc: change border_style to human-readable string instead of enum value
Michael Stapelberg [Wed, 11 May 2011 18:22:47 +0000 (20:22 +0200)]
Bugfix: Don’t run into an endless loop when killing con with children (Thanks mseed)
When a tabbed container had more than one child and at least the first one
supported WM_DELETE, i3 entered an endless loop when killing that tabbed
container. This was due to tree_close only sending WM_DELETE without actually
removing the child, while the loop in tree_close assumed that with every call
of tree_close one child would be removed.
Michael Stapelberg [Sun, 8 May 2011 18:08:46 +0000 (20:08 +0200)]
add coverage target to makefile to generate a coverage report
Michael Stapelberg [Sun, 8 May 2011 18:08:35 +0000 (20:08 +0200)]
tests: add --coverage-testing option to complete-run.pl
Michael Stapelberg [Sun, 8 May 2011 17:56:11 +0000 (19:56 +0200)]
makefile: add COVERAGE flag
Michael Stapelberg [Fri, 6 May 2011 11:09:50 +0000 (13:09 +0200)]
Bugfix: assign BORDER_BOTTOM instead of BORDER_RIGHT (Thanks Jan)
Michael Stapelberg [Thu, 5 May 2011 19:58:28 +0000 (21:58 +0200)]
cfgparse.y: define types (Thanks Merovius)
Michael Stapelberg [Thu, 5 May 2011 19:19:47 +0000 (21:19 +0200)]
re-indent cfgparse.y
Michael Stapelberg [Thu, 5 May 2011 18:39:05 +0000 (20:39 +0200)]
cmdparse.y: set type on the tokens/non-terminals (Thanks Merovius)
Michael Stapelberg [Mon, 2 May 2011 21:29:26 +0000 (23:29 +0200)]
re-implement assigning windows to workspaces
Michael Stapelberg [Mon, 2 May 2011 09:06:13 +0000 (11:06 +0200)]
Bugfix: Before rendering, attach the con to its floating_con
Otherwise, the rendering will produce negative coordinates.
Michael Stapelberg [Mon, 2 May 2011 09:05:50 +0000 (11:05 +0200)]
Bugfix: When re-assigning floating windows to a different output, use the last focused workspace, not the first
Michael Stapelberg [Sun, 1 May 2011 20:27:06 +0000 (22:27 +0200)]
Bugfix: Fix the client background rectangle calculation (Thanks Mike)
Really fixes #364.
Michael Stapelberg [Sun, 1 May 2011 17:46:41 +0000 (19:46 +0200)]
Bugfix: For fullscreen cons, use a deco_height of 0 to correctly render the background color
This should fix #364.
Michael Stapelberg [Sun, 1 May 2011 16:48:30 +0000 (18:48 +0200)]
Bugfix: Correctly render decorations in tabbed containers (don’t overlap)
This fixes a regression introduced in
b644fb5f26c1768b70c5b49d8cd917a63a2d1d91 .
Michael Stapelberg [Sun, 1 May 2011 11:56:35 +0000 (13:56 +0200)]
wizard: actually write the output config
Michael Stapelberg [Sun, 1 May 2011 10:50:18 +0000 (12:50 +0200)]
wizard: check if the config file does not already exist and if we can create it
Michael Stapelberg [Sat, 30 Apr 2011 22:26:10 +0000 (00:26 +0200)]
initial commit of the i3-config-wizard (GUI working, functionality incomplete)
Michael Stapelberg [Fri, 29 Apr 2011 22:37:03 +0000 (00:37 +0200)]
Bugfix: Add missing tree_render() when handling the urgency hint (Thanks mxf)