Commit Graph

1502 Commits

Author SHA1 Message Date
Tor Hedin Brønner
4708019b98 fixup! Avoid animation delay when holding down super+,/, 2020-02-15 16:19:19 +01:00
Tor Hedin Brønner
fe363c6d71 Avoid animation delay when holding down super+,/, 2020-02-14 12:54:10 +01:00
Tor Hedin Brønner
1fa6b62f75 monitorsChanged: let setMonitor take care of layout 2020-02-14 08:36:42 +01:00
Tor Hedin Brønner
1aebaf5832 background: recreate when changing monitor
Moving a space to another monitor with different fractional scaling
will mess up the background scale/size. Simply recreate the background
when moving monitors.

closes https://github.com/paperwm/PaperWM/issues/247
2020-02-13 11:58:05 +01:00
Tor Hedin Brønner
cf36740aaa top bar: fix label position on start 2020-02-12 10:57:26 +01:00
Tor Hedin Brønner
10011c98c3 top bar: correctly hide on secondary monitors
ref #243
2020-02-12 10:29:16 +01:00
Tor Hedin Brønner
bfe465bff7 workspace menu: don't expose hide top bar toggle
Clicking it makes it hard to bring it back. It's now togglable in the
prefs gui.
2020-02-10 21:38:03 +01:00
Ole Jørgen Brønner
0501e57745 prefs: add hide-top-bar switch
closes #239
2020-02-08 16:04:44 +01:00
Ole Jørgen Brønner
8a9d0c8bec prefs: add missing keybinding (toggle-scratch-window) 2020-02-08 00:18:25 +01:00
Ole Jørgen Brønner
087813801d install.sh: enable using gnome-extensions unconditionally
Bugfix old versions: install did not permanently enable extension.

`extensionSystem.enabledExtension(uuid)` does not write to dconf in 3.28 and 3.32
2020-02-01 14:41:06 +01:00
Romanos
e629cde2cc schemas: fix typo (#236) 2020-01-27 15:55:16 +01:00
Tor Hedin Brønner
ba059a07d6 performance: Deactivate clones when hidden
Having an active clone can cause some overhead, even when the window is
hidden. This can be observed if eg. playing a video in a hidden
workspace: the gnome-shell process will use around 10% cpu (at least on
my machine).

While we don't want to destroy and create clones on demand we simply set
null out the clone's source, which have the desired effect. This seems
to work smoothly.
2020-01-23 18:06:55 +01:00
Tor Hedin Brønner
86f97433a9 workspace menu: Scroll in the correct direction
The direction used were never «correct». When scrolling down it's
natural for the workspaces to move down. This had gone unnoticed for a
long time, but hopefully not too painful for people who have become
accustomed to the way it's been working.
2020-01-23 16:04:19 +01:00
Tor Hedin Brønner
e9bd86afe7 readme: clean up and clarify the ubuntu section 2020-01-23 15:59:51 +01:00
Tor Hedin Brønner
dbe21bac2e monitor overlay: React to button-presses 2020-01-23 15:59:47 +01:00
Tor Hedin Brønner
06874217ba edge overlays: Trigger on button-press
This used to trigger on button-release, to facilitate presses being
cancelable. However it never worked very well, and gnome shell generally
uses button presses to trigger actions.
2020-01-22 16:33:42 +01:00
Tor Hedin Brønner
24450d0a51 click overlays: Always use 1px width on wayland
On wayland we now always listen to button-presses on the space, which
means the edge overlays are only needed to trigger the preview.
2020-01-22 16:33:42 +01:00
Tor Hedin Brønner
b35d8c77aa space button-press: Always select glide target
Selecting the window under the pointer doesn't work very well when
gliding.

Simply ignore it for now, letting us always listen on the background in
wayland.
2020-01-22 16:33:42 +01:00
Tor Hedin Brønner
7b104a3f95 Disable 3-finger + tap action
This could trigger after 3-finger swipe + tap for some weird reason,
resulting in a minimized scratch window gaining focus.

I've tried to test the action without success, not really sure what it's
even supposed to do. Lets disable it :p
2020-01-22 16:29:48 +01:00
Tor Hedin Brønner
4e5c09b26a init: Take a direct reference to the backgroundGroup
When paperwm is installed and enabled in a running session, we can't be
sure that nothing hasn't touched the background group.
2020-01-21 20:02:22 +01:00
Tor Hedin Brønner
5879e63105 recommended settings: don't toggle auto-maximize 2020-01-21 19:02:51 +01:00
Tor Hedin Brønner
7e535fd9ef readme: document the new installer 2020-01-21 19:02:51 +01:00
Tor Hedin Brønner
31caf2692d Add uninstall script 2020-01-21 18:45:26 +01:00
Tor Hedin Brønner
994722b525 Enable extension on install.sh 2020-01-21 18:45:26 +01:00
Tor Hedin Brønner
866c8ffd21 Do not animate the top bar
Hiding the top bar doesn't change the workarea, at least in 3.34.
Having scale_y = 0 does change the workarea. In other words animating
the top bar means the workarea doesn't change immediately.

This can cause trouble when going from fullscreen to maximized, as the
workarea won't be updated early enough, giving the maximized window the
full monitor.

The animation isn't really that useful, so removing it is a viable fix.

In the case of user hidden top bar we still need to update the workare,
so we update the scale directly.

Also make the hideTopbar logic somewhat readable.

closes #220
2020-01-19 14:08:32 +01:00
Tor Hedin Brønner
9074eec97f sequential workspaces: Do not wrap around
Wrapping around is quite disorienting, and it's pretty quick to go
through all by holding down page up/down.

We should also remap super+home/end back to first/last workspace.
2020-01-18 23:07:59 +01:00
Tor Hedin Brønner
525b6dc1b4
Merge pull request #225 from paperwm/dnd
drag and drop windows
2020-01-18 15:48:47 +01:00
Tor Hedin Brønner
39c129f4ad Implement stand alone resize grab 2020-01-17 22:24:39 +01:00
Tor Hedin Brønner
de60a6195d Handle workspaces-only-primary minimally 2020-01-17 22:24:39 +01:00
Tor Hedin Brønner
acbe3e76f1 keyboard move: go straight to dnd
This makes it possible to activate dnd with the keyboard. Which also
means scratch windows are dnd'able.
2020-01-17 22:23:38 +01:00
Tor Hedin Brønner
487f331058 Do not end grab until inGrab.end has run
This gives us better control in inGrab.end
2020-01-17 22:23:13 +01:00
Ole Jørgen Brønner
1e4449b476 Better initial tiling preview
Let the tiling preview zone inherit from the window when dnd starts.
2020-01-17 22:22:13 +01:00
Tor Hedin Brønner
162f1a6d92 ugly: center and increase detection on empty spaces 2020-01-17 22:21:55 +01:00
Ole Jørgen Brønner
acb112bc02 Implement window drag and drop
It's now possible to rearrange windows with the mouse:

Dragging the window up, or down, will scale its size gradually down.
When below a certain threshold it will pop out of the tiling leaving the
user free to attach it at any tiling edge.

If not dropped onto a tiling edge it will end up as a scratch/float window.
2020-01-17 22:15:54 +01:00
Ole Jørgen Brønner
a48dd56bf0 Space.globalToSpace coordinate transform util 2020-01-17 17:14:36 +01:00
Tor Hedin Brønner
ce969e77f3 addWindow: don't run layout automatically
Running two layouts after each other on wayland can cause the second
resize to be lost.

So avoid doing an automatic layout on addWindow giving the calling code
better control of the subsequent layout.
2020-01-17 17:14:36 +01:00
Tor Hedin Brønner
5adc6f1515 Force floating windows onto the correct monitor
It's possible for floating windows to appear on a monitor inhabited by
another workspace.

So always force floating windows onto the correct monitor.

ref #226
2020-01-16 14:57:06 +01:00
Tor Hedin Brønner
902e8ed86e topbar: avoid actor warning spam 2020-01-15 12:58:08 +01:00
Tor Hedin Brønner
6cba1a2f67 monitors-changed: deactivate active space overlay
When eg. unlocking the monitor overlay would be active on the current
workspace.
2020-01-13 19:47:53 +01:00
Tor Hedin Brønner
0f0f9c4e7c keybindings: reset move-to-monitor-* properly
closes #223
2020-01-11 17:26:05 +01:00
Ole Jørgen Brønner
cd9101067d examples/keybindings: cycle edge snap 2020-01-11 13:27:35 +01:00
Ole Jørgen Brønner
0f003b2d69 Make restore settings script executable
fixes #222
2020-01-11 10:00:38 +01:00
Tor Hedin Brønner
49fe4a39f7 minimum workspaces: Fix when using 3+ monitors
The monkey patched code in kludges wouldn't run on enable after eg.
unlocking as kludges.enable() happens after tiling.enable(). This left
us with too few workspaces.
2020-01-07 19:17:06 +01:00
Tor Hedin Brønner
244fcf1950 monitorsChanged: Guard against removed workspaces
It's possible for workspaces to have disappeared between a disable and
enable, guard against this.

ref #217
2020-01-07 18:18:37 +01:00
Tor Hedin Brønner
1d2cabea36 readme: fix typo 2020-01-07 11:26:26 +01:00
Tor Hedin Brønner
0d2e41ceae readme: link to some common issues 2020-01-07 11:22:10 +01:00
Tor Hedin Brønner
fb7b8aac4c window-gap: default to 20px 2019-12-22 19:03:18 +01:00
Tor Hedin Brønner
b8a5d7420a readme: document the new develop branch 2019-12-19 15:52:06 +01:00
Tor Hedin Brønner
9b6f071af4 readme: don't reccomend switching super and alt 2019-12-19 15:49:37 +01:00
Tor Hedin Brønner
0003fc9f64 readme: link to 3.36 branch 2019-12-19 15:48:10 +01:00