Ole Jørgen Brønner
2dd9b86bb9
Minor cleanup: notes.org
2018-06-25 22:35:17 +02:00
Tor Hedin Brønner
5a4e78cd2d
Fix coordinates that broke multi monitor setup
...
Used monitor relative coordinates as absolute two places.
2018-06-25 21:28:16 +02:00
Ole Jørgen Brønner
0d19b749e7
Cleanup: remove repl.js
...
Not useful anymore - better to put some useful sample code in ./examples/
2018-06-25 20:30:03 +02:00
Ole Jørgen Brønner
b13cb4dda4
Minor cleanup
2018-06-25 20:26:16 +02:00
Tor Hedin Brønner
9dc591e697
Fix slurp and barf when navigating
...
Simply rebuild all the clones whenever we execute a non-navigating action. This
is a bit ad-hoc and the whole minimap should probably be rewritten using signals
emitted when the associated space changes (eg. on `space.addWindow`).
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
8c93f10509
fixColumn: move visible check outside the loop
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
ccc6249283
edge-overlays: Always cover the gap when targets are almost hidden
...
Instead of removing the gap when we're dealing with fullscreen or maximized
windows we remove it when the overlay is wider than 75 pixels.
Also fully cover all windows that aren't marked as `visible` by the space.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
5f6a071651
move_to: Use overlay.target to check if the overlay has a target
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
a7cc11107f
edge-overlays: setTarget(metaWindow) -> setTarget(space, index)
...
Let the edge-overlays act on columns.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
1ff4793cf4
disable: Lower all windows
...
Lower windows using the flat order of the space.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
65726c197e
moveSizeHandler: only pass onComplete if we should animate
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
8a3bf62c9b
Constrain selection highlight to the bottom of the top bar
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
baf0d53000
Deprecrate detach in favor of space.removeWindow
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
604da418bc
Select the correct window when removing selectedWindow
...
We simply select the most raised window, ie. how clutter chooses the next focus
window.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
db19ac1376
Simply keybindings somewhat
...
Only use one instance of the wrapped functions.
2018-06-25 16:50:44 +02:00
Ole Jørgen Brønner
5f7396f25f
Misc changes to moveSizeHandler, move_to and centerWindwo:
...
`move_to` means move the window's *column*, not the window itself.
- Honor y argument in move_to. It's needed to position fullscreen/maximized
windows.
- Provide a default y value for move_to (top of column)
- Use the moved frame's x position in moveSizeHandler (otherwise it's not
possible to move non-top vertically tiled windows
Only passing y to move_to in moveSizeHandler is maybe a bit confusing?
2018-06-25 16:50:44 +02:00
Ole Jørgen Brønner
cd874e4d21
Fix centerWindowHorizontally for vertically tiled windows
...
When centering a v-tiled window other than the top window, move_to squashed the
column since fixColumn started at the focus window's y
It's no fully clear what the `y` argument in `move_to` should do maybe?
After this fix is doesn't really do anything.
2018-06-25 16:50:44 +02:00
Ole Jørgen Brønner
b23f9f1d27
Handle non-tiled windows specially in centerWindowHorizontally
...
`move_to` broke for non-tiled windows, and `move` don't animate since the clone
isn't attached for non-tiled windows.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
a61413c6f5
readme: document vertical tiling
2018-06-25 16:50:44 +02:00
Ole Jørgen Brønner
aa5a77738f
Main.layoutManager.focusMonitor is very new so use a "polyfill" for now
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
d47e731aae
Add slurp-[i]n/barf-[o]ut bindings
...
`<super>i` and `<super>o` as default bindings.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
3c1dbf6c41
readme: Update keybindings
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
245a388ad5
Fix fullscreen and maximized handling
...
Regression caused by forgetting that fullscreen and maximized windows have fixed
positions, so we need to explicitly check the state.
`moveSizeHandler` needs to pass the actual top y position of the column.
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
5306316929
Add column reordering
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
49e4596e24
Add spatial navigation with arrow keys
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
a079300af3
Add `switch-left/right/up/down actions
...
Use `Super Page_Up/Down' for workspace movement
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
d59b16664e
Pass correct arguments to fixStack
2018-06-25 16:50:44 +02:00
Ole Jørgen Brønner
ec23728b24
Check array bounds in Navigator._reorder
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
e2daba83c9
minmap: Make room for vertical window gaps
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
c59cc48635
Use the top of the mru as the overlay target
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
aff871d783
navigate: Fix reordering
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
9f577f6981
Navigate through all the windows
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
0db0bd81fd
minimap: Render vertical tiling
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
c4060a2a8e
Pass fixColumn/move_to correct y coordinates
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
1aac1a233c
Only cover the selected window with selection highlight
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
f153e4fe33
Distribute the height in a column evenly
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
dbd163972a
Resize column width, using selecteWindow width if possible
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
867aca68a4
Set the first window in a column as overlay target
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
81e6be9a2c
Detect visibility correctly
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
1262e73a6c
Align columns on the y axis on ensure viewport
2018-06-25 16:50:44 +02:00
Tor Hedin Brønner
2fb3bcef10
Use Tiling.noAnimate
2018-06-25 16:50:43 +02:00
Tor Hedin Brønner
4acfe41ac3
Refactor fixColumn out of move_to
2018-06-25 16:50:43 +02:00
Tor Hedin Brønner
d3f8f5bf4c
Restore tiling correctly on disable/enable
2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner
162c83ef9c
Add updateSelection to handle position of the selection highlight
2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner
a5fcf5692a
Rudimentary slurp function
2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner
42dc4ba8b2
Wrap moveSizeHandler for easier re-eval
2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner
0b202ba7b9
Move other windows in current window's column
2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner
5fc37aebe0
Default values for x and y in 'move'
2018-06-25 16:50:43 +02:00
Ole Jørgen Brønner
92d7974204
Only render first row of columns in minimap (instead of flattening everything)
2018-06-25 16:50:43 +02:00
Tor Hedin Brønner
4c67943b43
Handle columns properly in move_to
2018-06-25 16:50:43 +02:00