Commit Graph
1516 Commits
Author SHA1 Message Date
Tor Hedin Brønner 335a623be7 Polyfill Clutter.Vertex 2020-02-25 10:44:00 +01:00
Tor Hedin Brønner 4ef1db8704 Polyfill actor.reparent/raise/raise_top
3.35.2 removed these deprecated methods, but the replacement is a bit
wieldy, so lets just polyfill.
2020-02-25 10:44:00 +01:00
Tor Hedin Brønner f5dd5b9c9d topbar: guard against non-existing space 2020-02-25 10:42:46 +01:00
Tor Hedin Brønner fccbf8eaf0 Fix hang: update panelMonitor on monitors-changed 2020-02-25 10:15:35 +01:00
Tor Hedin Brønner 00ee56e127 fixup last commit 2020-02-23 17:26:31 +01:00
Tor Hedin Brønner f90f5f3203 topbar: fix top bar showing on fullscreen space
Consolidate the logic into one function.
2020-02-23 17:10:23 +01:00
Tor Hedin Brønner bde77e7b17 signals: Actually forget disconnected signals 2020-02-23 16:40:09 +01:00
Ole Jørgen Brønner 73ef38e6a9 keybindings: bugfix 2020-02-23 15:17:51 +01:00
Tor Hedin Brønner ecd355115c top bar: Add only show on primary preference
Introduces `TopBar.panelMonitor` which points to the monitor currently
holding the top bar.
2020-02-23 14:51:08 +01:00
Tor Hedin Brønner a494ef9ca2 liveAltTab: fix in fog animation
We can't start animations on actors outside the stage.
2020-02-20 21:11:52 +01:00
Tor Hedin Brønner 9b0bdc908d liveAltTab: Make sure the clone is fully visible 2020-02-20 14:08:12 +01:00
Tor Hedin Brønner 1a20820848 Utils.Signals: fix connectOneShot
If the object had more than one signal connected, disconnect would cause
those signals to be forgotten.
2020-02-20 10:10:36 +01:00
Tor Hedin Brønner 7b287ab1c7 worksapace menu: Fix lingering show top bar 2020-02-20 09:25:22 +01:00
Tor Hedin Brønner 742de5afc9 clickoverlay: deactivate when in overview
Windows on a workspace can be placed on another monitor. Having the
clickoverlay active means it's impossible to interact with these
windows.

This is a quick fix to make the overview somewhat more acceptable when
using multiple monitors.
2020-02-18 10:34:04 +01:00
Tor Hedin Brønner 5811805186 topbar: fix visibility when focus is fullscreen 2020-02-17 16:14:55 +01:00
Tor Hedin Brønner 17d5fad6c0 disable: null out targetHeight/Width
This might fix a bug where changing monitors can leave windows in an
incorrect size.
2020-02-17 16:14:55 +01:00
Tor Hedin Brønner 4ccf271593 insertWindow: always set opacity after insertion
onComplete only runs if the animation actually finishes. While there
shouldn't be anything that runs a new scale animation on the clone, or
removes transitions. It doesn't hurt to be on the safe side and use
onStopped which is guaranteed to run, since the complete function is
essential.

ref https://github.com/paperwm/PaperWM/issues/248
2020-02-15 05:33:36 +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) 34.3 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