Commit Graph
1605 Commits
Author SHA1 Message Date
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
Ole Jørgen Brønner de4a31b0ed Ensure grab window remains focused when ending navigation before dnd 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 73442b9a62 begin dnd when pointer moves to another monitor 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner ff527b992d navigator: never move a visible space 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner d6dc25eee2 non dnd motion: coords were already monitor relative 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner cf09b9333d cleanup 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 19b668d0d2 navigate to correct space on grab.end() 2020-12-05 20:36:19 +01:00
Tor Hedin Brønner f257e2618c navigator: rewrite finish/destroy code
- Activate destination workspace if it isn't active, fake it if not.

If a «stuck» window have focus, consider it selected.

If selected window or one its transient window has focus, fake focus
handler. Otherwise activate it.
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 76f0811a89 reposition clone using pointer after insertion
For some reason this is accurate
2020-12-05 20:36:19 +01:00
Tor Hedin Brønner 8afae530d3 space: only scroll if navigating or in a grab 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 41778b1f30 grab: remove scroll-event 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 2ebc2a0efb grab: remove positionChanged 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 06d1a765f9 space button-press: navigate to space if clicking on background 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner b75a49c2bb navigator: always start dnd if grab is active 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner df0cdbc5bf position clone correctly when popped out of scaled space 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 369d3c99a6 get_coords doesn't take scaling into account
Use get_pointer, and transform_stage_point for to get correct
coordinates...
2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 049c1331fb isWindowAtPoint: use correct clone coordinate 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 01d9ce435d navigator: start dnd if in grab 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 685c1ea20f guard 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 85c0c9d48f fix some coordinate transforms 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 371453cec0 fix grab y position 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 095cc72327 better pointeroffset 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner c6ad376764 wip: grab everywhere 2020-12-05 20:36:18 +01:00
Tor Hedin Brønner 3752114f62 wip: always use fake grab 2020-12-05 20:36:18 +01:00
Ole Jørgen Brønner 851157de15 DnD mouse cursor 2020-12-05 20:36:18 +01:00
Ole Jørgen Brønner 86a91c232e utils: less verbose trace functions 2020-12-05 20:36:18 +01:00
Ole Jørgen Brønner 60d1ad7e73 Do DnD outside mutter grab
- delay workspace change until DnD end (partial Navigator destroy)
- sync scratch window frame with clone on grab end

Bug in the wip commit fixed: (focus was not always preserved on workspace dnd)
- DnD a window
- switch to a different workspace using the workspace carousel
- drop the window

-> the DnD-window loose focus on workspace change (in step 2)

Note: Mutter enforce focus_window.workspace === active_workspace, changing focus
window if necessary.
2020-12-05 20:36:18 +01:00
Ole Jørgen Brønner 0368271631 Ensure all windows in the space belong to the workspace before completing workspace switch
This simplifies code moving windows between workspaces without messing with the
focus. (since mutter enforce focus_window.workspace == active_workspace)

Mainly preparation for DnD fixes in the next commit.
2020-12-05 20:36:18 +01:00
Tor Hedin Brønner d1e392d313 Use clones global coordinates to insert 2020-12-05 20:36:18 +01:00
Ole Jørgen Brønner 77e78d7d94 wip: do DnD outside mutter grab
This is much more flexible: we can drag windows across workspaces in the
carousel, react on keybindings, scroll, etc.
2020-12-05 20:36:18 +01:00
Tor Hedin Brønner a69df7a333 metadata: note 3.38 support 2020-12-05 19:36:58 +01:00
christopher-landChristopher Lübbemeier f9db7fdc0d fix workspace-label border (#353)
Co-authored-by: Christopher Lübbemeier <luebbemeier@metaventis.com>
2020-11-29 13:36:14 +01:00
Tor Hedin Brønner 7540e9f6e8 kludges: fix overview sorting 2020-11-22 16:59:20 +01:00
Tor Hedin Brønner ee0a3eaee4 Fix only/disable-scratch-in-overview on 3.38
`_isOverviewWindow(win)` now takes a metaWindow, not an actor.
2020-11-14 14:36:21 +01:00
Tor Hedin Brønner 261ae9de8f overview: make overview usable on 3.38
The monkey patching just causes problems on 3.38 after they made a
fairly big rewrite.
38.1
2020-11-09 18:46:06 +01:00
Pacman99 8efe979128 Add option to disable showing scratch windows in overview. (#346)
Creates dropdown menu to let user choose between never, always, or
only showing scratch windows. The state is tracked by two
booleans,'disable-scratch-in-overview' and 'only-scratch-in-overview'.
2020-10-29 20:30:58 +01:00
Tor Hedin Brønner 3197ac1df0 Fix top bar when exiting overview
fixes #345
2020-10-27 20:38:14 +01:00
Tor Hedin Brønner d3e3e03a6d Release 38.0 2020-10-15 18:27:49 +02:00
Tor Hedin Brønner 40a7509188 backwards compatible background fix 38.0 2020-08-23 16:57:05 +02:00
Tor Hedin Brønner 54b7448e4d Simple fixes for 3.38
log no longer takes several arguments...

actor.add seems brokenish?
2020-08-23 16:56:32 +02:00
Tor Hedin Brønner e76bfd9069 swipe: also fix 4-finger swipe horizontally 2020-08-15 15:28:25 +02:00
Tor Hedin Brønner 4a58b549e5 swipe: support 4-finger swiping 2020-08-15 15:22:16 +02:00
Ole Jørgen Brønner 4a923f008f readme: make winprop example "compatible" with user.js template
If pasted directly into init an error occur due to Tiling already being defined.
Thanks to @frizop for reporting it.
2020-08-14 17:19:23 +02:00
Tor Hedin Brønner 31ef966fab alt-tab: respect current-workspace-only
This works with the new ordered workspace animations.

closes #330
2020-08-13 22:12:38 +02:00
Illya Klymov a57dbdf1bb Safer way to add fixes to Clutter.Actor prototype (#327) 2020-07-18 20:55:09 +02:00
Simon EpsteinandSimon Epstein c98fe8556e Avoid moving the top bar when it's stuck on primary
With `topbar-follow-focus` set to false we still moved the topbar (to its own position).
This caused issues with dash-to-panel with panels on all monitors.

So only move the topbar to the primary monitor when `topbar-follow-focus` is toggled 
off by the user.

There's still some issues with dash-to-panel and the workarea on secondary monitors, 
but this makes it at least somewhat usable.

Co-authored-by: Simon Epstein <simon.epstein@67bricks.com>
2020-07-02 22:49:35 +02:00
Fabian Frei ac54a572db Updated README.md with info about fixed window size (#313) 2020-06-13 16:14:29 +02:00
Ayla Ounce 9e15aa2de5 extend uninstall.sh to handle non-linked installs (#312)
Currently uninstall.sh fails if run on an installation copied or cloned
directly into the extensions directory. This change updates it to check
whether the install is link-based or direct and handle each case
appropriately. Due to the potential danger of a recursive removal, it
prompts the user for confirmation before removing direct installs.
2020-06-05 21:21:33 +02:00