Commit Graph
1652 Commits
Author SHA1 Message Date
Tor Hedin Brønner e9f714846b window creation: queue redraw no longer exists 2021-04-05 11:55:09 +02:00
Tor Hedin Brønner 4e15a1c18e kludges: viewSelector no longer exists 2021-04-05 11:51:59 +02:00
Tor Hedin Brønner 61546c4970 Claim to support gnome 40 2021-04-05 11:47:38 +02:00
Tor Hedin Brønner aeda0cf290 Polyfill version info for gnome 40 2021-04-05 11:46:38 +02:00
Ole Jørgen Brønner f6e9ab4d90 add left binding for fit available 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 01201b3b15 semicolons 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner d9bd8f972a WIP:
- move most layout related function into separate file
- restructure a bit
- create cycleLayoutDir to allow explict control over which neighbour to use
- add bindings for expandOrShrink (aka. "fit") right neighbour
2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 618726ba00 refactor: move minimumMargin function to a getter prop on prefs
Simplify passing a complete prefs object around.
2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner fea0302c6b examples/keybindings: cycle-layouts 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 9addaf8132 examples/keybindings: expand-available-width 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 80a9fb1e0b examples/keybindings: small fix swap-neighbours 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 6aba5726fc Name some actors we use to aid debugging 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 9e29438b37 utils: fixes to printActorTree 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 9a991db137 fixup! WIP 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 465a6ea304 fixup! WIP 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner c1de5eb06b WIP 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 87b70bfd68 ... 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 0a995900f4 viewport positioning 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 529fb80e0d playground 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner eb051c4a0d get_pointer seems to be a reliable way to get modifiers on both X11 and wayland 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 5f8dc39d68 Hack to make clone marks survive grabs 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 87de4aaf16 Bugfix: (X11 only?) fix occationally initial jump when moving window
The `global.get_pointer` is not necessarily in sync with the clutter motion event.

We use `global.get_pointer` to set the anchor in `begin`, but sometimes (fast
motions more likely to trigger) it's an extra event in the `motion` event queue.
The motion handler will in effect see a reality that occured before the anchor
was set, triggering a "jump".

Also notice that `global.get_pointer` seems to be ahead of the actual grab event
:/ meaning we get less responsive window moving. We don't have access the actual
click coordinates which triggered the move :(
2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 9c232f2a6d getModiferState: always return 0 on X11
The clutter reported modifier state is easily stuck on X11:
- Enter "clutter mode". Press and hold ctrl whild exiting (usually ctrl-ecs)
- Clutter will now report ctrl after ctrl is released causing windows to go
  directly to dnd mode when moved.
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 7bc192a6d4 grab: pass the correct focus window to navigator
When ending a grab we want to have full control over what space and
window gains focus. So simply pass the window through navigator.finish
in addition to the space.
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner d1e594e6cf navigator finish: ensure moveDone is run 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 9c94606355 navigator: do action before forcing dnd 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 740628781a dnd: bugfix zone selection 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 09020cc8ec dnd: restore wider zone on empty workspaces (regression)
Also move zone actor creation to zone activation.

(regression after "dnd: create zones and actors on the fly")
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner ac58cb5a7f ctrl grab: support gnome 3.36 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 0be41a04a7 dnd: rip out the window immediatedly when ctrl is held down (scratch also)
(only works properly in wayland)
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 61ff9ce48f fix clone jumping when dragging in a scaled space 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 45608e03c8 grab: fix for scratch windows 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 512ea78898 begin: fix scratchish detection 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 94529ad29a dnd: hide minimap
This is a bit ugly, should probably have a proper method for this.
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner a4fd3e45ff navigator: pseudo focus when hitting escape in grab 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 25fcdeaf29 Substitute scratch windows with clones
This is necessary for events to pass through to the space.
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 87b6518851 scratch: Add animateWindows and showWindows 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 775db1b2a5 navigator: Start DnD if grab is active on finish 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 6e22da7278 dnd: rip out the window immediatedly when ctrl is held down
(only works properly in wayland)
2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner ecf487c157 dnd: handle empty spaces (on demand zones) 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 78dd56dc36 dnd: create zones and actors on the fly
Precreated zones doesn't work when the user can alter the space during
grab. (eg. resize a window or insert new ones)

TODO: handle empty spaces
2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 04a0e5ec83 utils: crude actor tree printer 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner a2312dd7ca refactor to globalToScroll and globalToViewport 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 4670338f29 wip: implemnt keyboard grab 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner ab7e7cc2a4 utils:trace: don't require a metawindow 2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner 5aeab6f1dc Only react to background clicks when in preview mode
Background click outside preview caused background to be "permanently" tracked
when only scratch windows was visible.
2020-12-05 20:36:19 +01:00
Ole Jørgen Brønner bf2de90d0d Always run a complete switch workspace handler on navigation end (inPreview)
Needed to ensure all windows belong to the space's workspace. Especially this
case:

- Start navigating (from A) to the previous workspace (B).
- Drag and drop a window (X) from B to A
- Navigate back to A and end navigation.

X still belongs to B unless the full event handler run.

ref commit: Ensure all windows in the space belong to the workspace before completing workspace switch
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner ab33b9a268 grab: make re-grabbing a window smoother 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner abe9ac1ec0 moveDone: guard against all grabbing
We now do all move grabbing in clutter.
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner b1f6130375 space: fix scroll direction 2020-12-05 20:36:19 +01:00