Commit Graph

23 Commits

Author SHA1 Message Date
Tor Hedin Brønner
957e27a1d1 kludges: Add overrideWithFallback 2019-10-18 19:21:45 +02:00
Ole Jørgen Brønner
739c4350d7 app: Launch new windows from the workspace directory if set
We override these methods so this will work from the typical launchers:
   Shell.App.open_new_window
   Shell.App.launch_action('new-window', ...)
   Gio.DesktopAppInfo.launch
   Gio.DesktopAppInfo.launch_action('new-window', ...)

NOTE: overridden `launch` can act somewhat strange with single process many
window apps if the process. If the process is launched with a specific directory
new windows might inherit this on non-overridden `new-window`. (seen in Tilix)
2019-10-18 19:21:45 +02:00
Tor Hedin Brønner
f382ac07a1 kludge overview: handle only-on-primary 2019-10-18 16:11:21 +02:00
Tor Hedin Brønner
4b1c8264c0 kludges: disable pinch to overview gestures
These just doesn't work well and are easy to trigger while scrolling with the
touchpad. (it doesn't help that the overview can be slow as hell)

Thankfully this variable was exposed as a `var` so we override it :)

If you want these you can add this in your `user.js` enable function:
```
Kludges.disableOverride(imports.ui.viewSelector, 'PINCH_GESTURE_THRESHOLD');
```
2019-10-14 16:38:35 +02:00
Tor Hedin Brønner
e560c44fa5 kludges: refactor override system
Not in full use yet.

But the main point is saving the original method on init, supplying an optional
override which will take effect on enable. We reset all properties to their
original form on disable.

NOTE: a property is only ever saved the first time, but new overrides can be
supplied as much as you want.
2019-10-14 16:00:54 +02:00
Tor Hedin Brønner
80c3792ad8 kludges: disable 4-finger workspace switching
We still aren't able capture the events, but we can override `_checkActivated`
to always return false, making the gesture always ineffectual.
2019-10-10 12:55:03 +02:00
Ole Jørgen Brønner
e0dae49840 Misc polyfills for 3.28 backwards compatibility 2019-09-29 23:04:16 +02:00
Tor Hedin Brønner
52d1f86635 Fix ease polyfill for 3.28 2019-09-29 22:15:03 +02:00
Tor Hedin Brønner
aa183e89ec Polyfill new 3.34 transition api 2019-09-28 15:06:57 +02:00
Tor Hedin Brønner
c42d817e1a Do not purge workspaces when using the workspace carousel
fixes #164
2019-09-26 13:28:52 +02:00
Tor Hedin Brønner
7fb9f4a0c1 Fix full hot code reload
`getCurrentExtension()` does not work with gnome-shell-mode's eval. Use a
somewhat verbose feature detection to work around the changes made in 3.34.
2019-09-03 17:36:37 +02:00
Rasmus Eneman
f949799c37 Fix crash under Gnome 3.34 2019-08-30 08:16:23 +02:00
Ole Jørgen Brønner
570abadc9b dynamic workspaces: never remove a visible workspace
This caused a crash when going from a empty visible workspace that was going to
be garbage collected to another monitor.
2019-06-23 18:36:15 +02:00
Tor Hedin Brønner
b5aa3cf09a dynamic workspaces: only remove spaces when #workspaces > #monitors
We need at least as many workspaces as there's monitors.
2019-06-23 18:34:45 +02:00
Tor Hedin Brønner
65e009815a Fix overview order and animation
Use the tiling to sort the overview. Floating windows are sorted the regular way
among themselves and put before the tiled windows.

We also report the correct coordinates so animation to and from the overview is
correct.

ref #4
2019-04-30 14:11:19 +02:00
Tor Hedin Brønner
719d01e1f9 Add only-scratch-in-overview setting, defaults to false
Only show scratch windows in the overview, toggled by `only-scratch-in-overview`
setting.

see discussion:
https://paperwm.zulipchat.com/#narrow/stream/174110-design/subject/limit.20overview.20to.20scratch.20windows
2018-12-06 10:02:54 +01:00
Tor Hedin Brønner
fc40aaa6ae kludges: add some save/restore method nicery 2018-12-06 09:56:09 +01:00
Tor Hedin Brønner
e795dcf90d Fix no hot corner
When there's several monitors it's possible for the first corner in `hotCorners`
to be null.
2018-11-24 01:37:16 +01:00
Tor Hedin Brønner
68d28e4ac4 kludges: properly disable the native workspace animation (3.30) 2018-11-24 01:18:30 +01:00
Tor Hedin Brønner
78740e76ce Disable the hot corner by default
Having the hot corner activate the overview works rather poorly with scrolling
through the workspaces.

We disable the functionality by default. The preference `override-hot-corner`
controls the functionality, so set it to false if you want it back.

A possibility is having the hot-corner force the top bar to be visible when
a fullscreen window has focus, but it's not yet implemented.
2018-08-28 01:24:04 +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
5ffc0784e2 We shouldn't need to turn off redirection anymore 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner
c0a65058b8 Add a kludge module to monkey patch around gnome shell oddities 2018-02-17 21:52:31 +01:00