Commit graph

484 commits

Author SHA1 Message Date
Bastien Dejean
ef3913e302 Only call arrange when needed 2013-05-29 21:20:30 +02:00
Bastien Dejean
b87737565b Fit windows in their updated monitors 2013-05-29 21:19:11 +02:00
Bastien Dejean
26c84e8221 Avoid NULL node and non-NULL root in focus_node 2013-05-29 20:30:01 +02:00
Bastien Dejean
1e064aa723 Handle remote focus corner case in transfer_node 2013-05-29 20:21:51 +02:00
Bastien Dejean
687c9962f1 Always update focus and history when inserting 2013-05-29 15:24:48 +02:00
Bastien Dejean
6dfff24ce8 Set focus pointer when inserting nodes 2013-05-29 15:13:34 +02:00
Bastien Dejean
3b0d482f41 Refactor focus_node and select_*
The select_* and focus_node where initially made independent as to
observe the --follow option. But this is in fact not necessary.
2013-05-29 14:34:27 +02:00
Bastien Dejean
ff9db2a94a Three arguments is enough for focus_node
The fourth argument of `focus_node` was introduced to avoid calling
unneeded functions from `manage_window`: the reason is not good enough
to justify the existence of that extra argument.
2013-05-29 11:36:01 +02:00
Bastien Dejean
c7f3d1a695 Handle removal of focused monitor 2013-05-29 10:37:52 +02:00
Bastien Dejean
d8f54f3e3e Select focused desktop when selecting monitor
Also:
- Observe `auto_alternate` with `use_monitor`.
- Update `last_mon` when a monitor is removed.
2013-05-29 10:00:25 +02:00
Bastien Dejean
82e5a6dc55 Set ID of monitor when adding it 2013-05-29 08:35:13 +02:00
Bastien Dejean
e108e11167 Consolidate RandR fallback 2013-05-29 08:35:13 +02:00
Bastien Dejean
38b3f3531a Handle monitors via RandR 2013-05-29 08:35:13 +02:00
Bastien Dejean
c41110efd0 Don't try to focus windows in an empty desktop 2013-05-29 08:33:24 +02:00
Bastien Dejean
402f7d6cf3 Prevent flickering of grab_pointer focus
`stack_tiled` can generate flickering when monocle windows are involved,
so we shall try to avoid triggering it whenever possible.
2013-05-26 22:57:32 +02:00
Bastien Dejean
789697360c Refresh TODO list 2013-05-08 15:13:06 +02:00
Bastien Dejean
5676458548 New message: 'restore_history'
In addition, the message previously known as 'restore' is now called
'restore_layout'.
2013-05-08 15:10:09 +02:00
Bastien Dejean
82bd5644cb The birth_rotation attribute replaces birth_mode
The `birth_mode` was not sufficient for properly unrotate the brother of
a removed node. The `birth_rotation` stores the rotation applied to the
brother subtree when the node was inserted.

This should help to enforce that (L + n) - n = L in every possible
cases. Which means that adding a node and removing it should leave the
layout unchanged.
2013-05-08 14:10:53 +02:00
Bastien Dejean
365c17b429 Handle birth mode when toggling the floating state 2013-05-08 11:28:42 +02:00
Bastien Dejean
a56e5ddfe6 Handle the node's birth mode consistently 2013-05-08 11:05:48 +02:00
Bastien Dejean
bb34c26052 Fix removal of vacant node
When vacant node are removed we mustn't rotate any subtree since the
node is already out of the tiled layout.
2013-05-07 23:15:18 +02:00
Bastien Dejean
962f007d85 Update TODO 2013-05-07 22:57:20 +02:00
Bastien Dejean
e6da88fa1c New setting: focus_by_distance
The aforementioned setting, when set, makes the focus movements based on
the distances between the window sides.

The `{prev,next}_leaf` functions were taught not to climb above their
roofs.
2013-05-07 22:45:14 +02:00
Bastien Dejean
011656ac3d Update TODO 2013-05-07 14:34:53 +02:00
Bastien Dejean
2b2175103c Add a few comments regarding the latest state 2013-05-07 14:29:17 +02:00
Bastien Dejean
0bb82628a5 Keep consistent names for node lists 2013-05-07 14:21:15 +02:00
Bastien Dejean
387c6243b4 Simply history removal 2013-05-07 14:15:15 +02:00
Bastien Dejean
1c83941f7c Reverse history list order
Otherwise, `history_remove` breaks the `latest` state.
2013-05-06 19:24:41 +02:00
Bastien Dejean
6c7d7d9444 Stack tiling windows via focus history 2013-05-06 18:31:53 +02:00
Bastien Dejean
f004d2a874 Add completion for list_history 2013-05-06 15:14:14 +02:00
Bastien Dejean
b5f6f048cc Merge branch 'master' into history 2013-05-06 15:07:19 +02:00
Bastien Dejean
63aa38a5c2 Fix bash completion path 2013-05-06 14:55:29 +02:00
Bastien Dejean
978f655c7e Bash completion: first cut 2013-05-06 14:52:18 +02:00
Bastien Dejean
51206461ee Drop chmod: preserve attributes via cp -p 2013-05-06 14:45:40 +02:00
Bastien Dejean
7c24244986 Fix typo 2013-05-06 11:46:40 +02:00
Bastien Dejean
06065f0cf5 Merge branch 'master' into history
Conflicts:
	messages.c
	tree.c
2013-05-06 11:36:12 +02:00
Bastien Dejean
8e57511b50 Particularize swap_nodes 2013-05-06 11:28:32 +02:00
Bastien Dejean
f5140c46dd Merge branch 'master' of github.com:baskerville/bspwm 2013-04-21 20:41:22 +02:00
Bastien Dejean
72fbb89e9c Version 0.6 2013-04-21 20:40:26 +02:00
Bastien Dejean
e58b0735df Update examples in relation to clock 2013-04-12 11:46:20 +02:00
Bastien Dejean
a6ad649119 Call put_status when inserting or removing nodes 2013-04-09 22:18:47 +02:00
Bastien Dejean
3581ba51d8 Only call put_status when needed 2013-04-09 11:37:24 +02:00
Bastien Dejean
ad999831e8 Fix *sxhkdrc* example *vim* comment 2013-04-09 10:35:20 +02:00
Bastien Dejean
bcb25fa297 Initiate the call to put_status 2013-04-08 19:31:49 +02:00
Bastien Dejean
5091792863 Update panel examples
- Mirror the changes made in the `put_status`.
- Add pointer bindings to each elements (via dzen2's `^ca()` syntax).
2013-04-08 19:08:52 +02:00
Bastien Dejean
8a7cab3b5d Consolidate put_status
Only use one character, only letters and don't print useless
informations.
2013-04-08 18:47:45 +02:00
Bastien Dejean
a12e43f528 New message: put_status 2013-04-07 11:27:24 +02:00
Bastien Dejean
8fbf8d5378 Only crop the center section from the right 2013-04-06 11:39:58 +02:00
Bastien Dejean
a524451fec Use ASCII chars for the layout indicator 2013-04-03 18:56:09 +02:00
Bastien Dejean
d533b704e4 New setting: split_ratio 2013-04-03 12:19:01 +02:00