Commit Graph
708 Commits
Author SHA1 Message Date
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
Tor Hedin Brønner bb22c4ed52 Don't check for pointer warping if we haven't changed monitors
This seems to make `switchWorkspace` animation a bit smoother.
2018-04-30 17:18:45 +02:00
Tor Hedin Brønner 24e8f5534c switchWorkspace: correctly filter out only visible spaces 2018-04-30 17:18:45 +02:00
Tor Hedin Brønner aed3646be2 Extend windows to the bottom of the monitor 2018-04-30 17:18:45 +02:00
Tor Hedin Brønner 2dfbd6edea Add an explicit background actor
We add a `space.actor` to hold background, cloneContainer and label. The
cloneContainer can then clip itself, letting the background have some horizontal
padding.

The background is also positioned somewhat above the monitor to avoid showing
anything through the upper corners.
2018-04-30 17:15:48 +02:00
Tor Hedin Brønner 77dd7438b3 Substitute all windows which protrude from the monitor with a clone
This will prevent tiled windows protruding into other monitors.

It's not completely ideal, but it does the job.
2018-04-30 00:04:27 +02:00
Tor Hedin Brønner 20a9d40fc3 Add a maximum width constraint on windows 2018-04-30 00:03:08 +02:00
Tor Hedin Brønner 42aedba3b6 Use var for all top level declarations to avoid warnings
We're assessing all top level declarations from outside the original scope when
we're evaluating code. So everything should be `var`.

Classes are `let` bound so we should use var for `ClickOverlay` too, but there's
a bug in gnome-shell-mode making such statements not evaluate. We therefor wait
for that to be fixed.
2018-04-30 00:03:08 +02:00
Tor Hedin Brønner c833998aae disable: Don't bother destroying clones as we'll destroy their parent
This removes a bunch of warnings.
2018-04-30 00:03:08 +02:00
Tor Hedin Brønner 30427f0bc4 Remove unnecessary StackOverlay import
The better name clickOverlays should be accessed from eg. `space.monitor` now.
2018-04-30 00:03:08 +02:00
Tor Hedin Brønner cfc3235d92 Fix select workspace animation 2018-04-30 00:03:08 +02:00
Tor Hedin Brønner c83f9590b0 Activate click overlays on startup/monitors-changed
We separate resetting the tiling overlay and activating/deactivating the monitor
click overlay.
2018-04-30 00:03:08 +02:00
Tor Hedin Brønner ffe533a172 Reset all ClickOverlays when we change monitors 2018-04-30 00:03:08 +02:00
Tor Hedin Brønner 4c794dfa9a Add pointer warping 2018-04-30 00:03:08 +02:00
Tor Hedin Brønner f063bcfcd5 Activate the clickOverlay when switching workspace 2018-04-30 00:03:08 +02:00
Tor Hedin Brønner 5263bb834c Make a ClickOverlay per monitor 2018-04-30 00:03:08 +02:00