Tor Hedin Brønner
0ed309fa18
Use 'tile-preview' style for selected window highlight
...
Might be a bit subtle, but works better as a selection, as there's a background
color (somewhat transparent).
We position the highlight vertically from the bottom of the top bar to the
bottom of the monitor.
2018-05-08 13:32:32 +02:00
Tor Hedin Brønner
829d992b59
Highlight selected windows when browsing the workspace mru stack
2018-05-08 12:19:09 +02:00
Tor Hedin Brønner
8dd4fcb82d
ClickOverlay: Use button-press-event to activate windows
...
More reponsive than release
2018-05-08 12:19:09 +02:00
Tor Hedin Brønner
a8efb66aa5
Force ensure on all workspace switches
...
Also don't emit 'move-done' if we've looked in the workspace stack.
2018-05-08 12:19:09 +02:00
Tor Hedin Brønner
b236636af5
Increase the cloneContainer clip and background size
2018-05-08 12:19:09 +02:00
Tor Hedin Brønner
e2f0b84ce7
Only create a single minimap
2018-05-07 14:15:47 +02:00
Tor Hedin Brønner
ff4c7180ba
navigator: Use the space mru to navigate workspaces
...
Access the spaces using a straight mru list, instead of through the awkward
`multimap.minimaps[i].space`.
Also move the rest of `_init` into `_initialSelection`, leaving the absolutely
bare minimum (`_switcherList` is required before `_initialSelection` is run).
2018-05-07 14:14:06 +02:00
Tor Hedin Brønner
05111f1266
Remove ugly early return when the space isn't fully filled up
2018-05-07 14:14:06 +02:00
Tor Hedin Brønner
46203848d9
Add selected window highlight
2018-05-07 13:47:54 +02:00
Tor Hedin Brønner
0f086909fe
Actually fix new window animation
...
In the case a new window didn't already receive focus, giving it focus after
having moved the frame would immediately show the WindowActor.
Instead we always run ensure with force on new windows, marking them as moving.
Making it unnecessary to add special handling in the focus handler for new
windows.
2018-05-06 13:39:17 +02:00
Tor Hedin Brønner
2d9c425b22
Fix new window animation regression
...
Calling ensure without force made the WindowActor immediately show itself, which
killed off the animation of the clone.
2018-05-06 12:48:28 +02:00
Tor Hedin Brønner
711fc67229
navigator: Remove obsolete code
2018-05-05 13:21:36 +02:00
Tor Hedin Brønner
e521865888
ensureViewport: Don't animate if we're not moving the window
2018-05-05 13:21:36 +02:00
Tor Hedin Brønner
fb4dfd1985
Let the Space::move-done signal take care of showing WindowActors
...
We store windows that should be visible, ie. their WindowActor should be shown,
in a `Space.visible` array. When done with animation we emit `move-done` and the
space will take care of replacing the clones with WindowActors.
Navigator integration is a bit awkward as we simply rely on a `Space.delay` to
indicate if we're in a non-moving state and can commit the WindowActors
immediately when finishing a navigation.
2018-05-05 13:21:35 +02:00
Tor Hedin Brønner
0a0812eaa1
Top bar: set correct space label position
...
Also use bold style for the workspace label to match the style of the top bar.
2018-05-05 13:21:35 +02:00
Tor Hedin Brønner
aeabb3d43f
move: make some room
2018-05-04 16:44:03 +02:00
Tor Hedin Brønner
51ea4123f4
Always disable unredirection when navigating
2018-05-04 16:44:03 +02:00
Tor Hedin Brønner
f5bdbe92cd
Reset oldSpaces after use
2018-05-04 16:44:03 +02:00
Tor Hedin Brønner
afa17072eb
sizeHandler: use correct coordinates
2018-05-04 16:43:59 +02:00
Tor Hedin Brønner
ffc0b58002
Fix stack levels on disable
...
This makes controlled restarts a bit nicer, while keeping the reasonable
placement heuristic in case of an «uncontrolled» restart.
2018-05-03 20:50:52 +02:00
Tor Hedin Brønner
132f0a4b3f
Always run native keybinding code on enable/disable
...
This should avoid reverting back to default keybinding in a buggy disable/enable
cycle.
2018-05-03 20:49:20 +02:00
Tor Hedin Brønner
42e726cceb
Center wide windows when larger than 90% of the monitor width
...
There's no reason to reference the hardcoded stack_margin here
2018-05-03 20:49:20 +02:00
Tor Hedin Brønner
bb34c34aaf
Rename badly named stack to its negation visible
2018-05-03 20:49:20 +02:00
Tor Hedin Brønner
8d3ae51728
Only raise after focus
2018-05-03 20:49:20 +02:00
Tor Hedin Brønner
db6252fe54
user.js: Add mode decoration
2018-05-03 16:01:19 +02:00
Tor Hedin Brønner
53c1d62cfe
Add readme
2018-05-03 15:00:56 +02:00
Tor Hedin Brønner
c6a23ed634
navigator: prevent complaining about finalized actor
...
See:
https://gitlab.gnome.org/GNOME/gnome-shell/blob/master/js/ui/switcherPopup.js#L302
2018-05-02 19:04:59 +02:00
Tor Hedin Brønner
15d21d35ac
Reset the left/right clickoverlays when showing the scratch layer
2018-05-02 17:03:57 +02:00
Tor Hedin Brønner
2a01db6f48
new window: Hide the window actor
...
This avoids animating the window across the monitor.
2018-05-02 13:31:15 +02:00
Tor Hedin Brønner
92e9209518
minimap: Guard against realWindow being null
...
For some reason this can now trigger a whole bunch.
2018-05-02 11:14:24 +02:00
Tor Hedin Brønner
c80a8df1ad
Show the minimap on the active monitor
...
There's a bug in SwitcherPopup where pushModal will sometimes fail on
`parent.show`. We therefor move most of the initialization to
`_initialSelection` which is run after the `pushModal` calls.
This also caused the issue where animations would randomly be blocked after a
navigation, which should be fixed now.
2018-05-02 11:02:09 +02:00
Tor Hedin Brønner
e909e17ab6
Make it possible for the user to override eg. the close keybinding
...
Run module.enable after keybind setup.
2018-05-02 10:47:42 +02:00
Ole Jørgen Brønner
3b18b3882f
Load rc/user-config after full init and catch errors in enable/disable
...
Ref: #51
2018-05-01 17:20:56 +02:00
Ole Jørgen Brønner
ba21e6859c
Implement rcfile/user-config as module ( #51 )
...
Fixes #51
2018-05-01 17:07:05 +02:00
Tor Hedin Brønner
47110d8f82
resize: Simplify by using move_to
2018-05-01 16:11:42 +02:00
Tor Hedin Brønner
839527bcdb
Always log init, enable and disable
2018-05-01 15:48:01 +02:00
Tor Hedin Brønner
68bf14d526
Fix resizing while navigating
...
We need to delete all tweens on the clone and sync its position when the actor
isn't visible.
2018-05-01 15:40:11 +02:00
Tor Hedin Brønner
4297c8a6e2
Replace metaWindow.destinationX with moving windows pre-animation
...
Had to reorder setting the click overlay targets after calling `move`.
2018-05-01 15:40:11 +02:00
Ole Jørgen Brønner
bd76ebcf35
debug log viewer: skip-crap didn't skip everything
2018-05-01 14:15:29 +02:00
Ole Jørgen Brønner
e394767e6c
Cosmetic: snake to camelCase
2018-05-01 13:56:04 +02:00
Ole Jørgen Brønner
6aaa010845
cycle-width: Move window if necessary so it remains fully visible
2018-05-01 13:24:50 +02:00
Tor Hedin Brønner
b058154cb8
Turn off debugging by default
2018-04-30 20:20:13 +02:00
Tor Hedin Brønner
e0e036bf35
Deactivate the clickoverlays when navigating the workspace mru
2018-04-30 17:18:46 +02:00
Tor Hedin Brønner
bbe540f3fc
Ad-hoc fix for moving windows across monitors
...
For some reason we trigger warping to the original workspace when activating
a moved window. So we disable he behavior for now.
2018-04-30 17:18:46 +02:00
Tor Hedin Brønner
6fde98b3d0
Cleanup monitorsChanged
2018-04-30 17:18:46 +02:00
Tor Hedin Brønner
d7abd24d3d
Only reset monitors if they're no longer present
2018-04-30 17:18:46 +02:00
Tor Hedin Brønner
bbfac4486b
Sync clone position before animation if the WindowActor is visible
2018-04-30 17:18:46 +02:00
Ole Jørgen Brønner
e955a9aca6
Hide the panel corners by opacity instead of actor.hide
...
dash-to-dock extension sometimes show the corner actors. Setting the opacity
makes sure they stay hidden :)
2018-04-30 17:18:46 +02:00
Tor Hedin Brønner
f31195ed22
Don't move and resize the current window on size-changed
2018-04-30 17:18:46 +02:00
Tor Hedin Brønner
47ac7b648e
Always keep the top bar on the focused monitor
2018-04-30 17:18:45 +02:00