Commit Graph
786 Commits
Author SHA1 Message Date
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
Tor Hedin Brønner fc3628bad4 Refactor space into an array of columns
This sets us up for supporting vertical tiling.
2018-06-25 16:50:43 +02:00
Illya Klymov 6f270ac442 Hide window previews after workspace was selected (#60)
I'm using paperwm without coloring each workspace (actually I'm using other extension which changes wallpaper on workspace change). In that case I can see workspace previews in background (especially if target workspace is empty).

This change hides previews when workspace change was done
2018-06-25 16:49:28 +02:00
Ole Jørgen Brønner b86a7a3115 Don't force position on first window
(This got lost when c7e4d99a35 was rebased)
2018-06-23 19:34:06 +02:00
Ole Jørgen Brønner c18ce14e00 Return early in Scratch.show if there's no scratch windows 2018-06-23 19:31:26 +02:00
Tor Hedin Brønner c7e4d99a35 Don't force the position of the first and last window 2018-06-23 19:09:46 +02:00
Tor Hedin Brønner dcb302d21d moveSizeHandler: return if window is already moving 2018-06-23 14:17:34 +02:00
Tor Hedin Brønner c991ce3765 centerWindowHorizontally: Animate and use whole pixels 2018-06-23 12:48:46 +02:00
Tor Hedin Brønner 0eade6d5cd Use grab-op-begin/end to turn off and on animation
Also let the user freely move a window on the y axis fixing the position when
the grab is done.
2018-06-23 12:48:46 +02:00
Tor Hedin Brønner cb9f73fc14 Only fix stack around an actual window
ref #56
2018-06-22 18:52:08 +02:00