Commit Graph
540 Commits
Author SHA1 Message Date
Tor Hedin Brønner fcbdd30ca5 Raise the clone when re-ordering windows 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 04ea63d22b workspace mru: Tune the space preview positions 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 71e78bc28c Reorder ensureViewport 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 22f8686485 Remove obsolete direction 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner b27d755368 Move propogateForward/Backward 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 3fe4f464c3 tiling: Some very basic documentation 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner d1a6686eab Rename propogate_forward/backward
Fix silly typo
2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 80d26142a7 fixup! Move add-handler 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 842b5e521d Move detach and center 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner bf465bd84c Move move 2018-04-22 15:01:57 +02:00
Tor Hedin Brønner d27024c12d refactor: ensure_viewport(s, w, f) -> ensureviewport(w, s, f)
Make passing space optional
2018-04-22 15:01:57 +02:00
Tor Hedin Brønner 9bb1bb231c Remove obsolete focus() function 2018-04-22 15:01:56 +02:00
Tor Hedin Brønner ab0f2be0fe Move add-handler 2018-04-22 15:01:56 +02:00
Tor Hedin Brønner 6239dca64a Actually add shadow to spaces
The clip made them invisible.
2018-04-22 15:01:02 +02:00
Tor Hedin Brønner aa5589c36e disable: Show all window actors 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 9d7a48161c navigator: simplify switchWorkspace
Use `get_next_sibling()` to get a reference to the cloneContainer stacked right
above.
2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 5a121e0953 navigator: block regular workspace navigation 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner f840387d70 liveAltTab: Block un/minimize animations
When alt-tabbing to a scratch window we do an instant preview. Focusing the
window would then trigger an un-minimize animation which would look weird.
2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 6368857b6b liveAltTab: clean up 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner f3c5ec56bc Update colors 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner a916885851 Remove unnecessary WindowActor hiding 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 7952b00ef2 Switch to active workspace properly on startup/restart 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner d404b271fe switch workspace: Don't animate when from and to is equal 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 6672624ce7 Add an ad-hoc label
Made to line up with the topbar workspace name.
2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 6cf10fca49 Better color palette 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 86f4fc3974 Add border radius to cloneContainers
For some reason the box-shadow doesn't work.
2018-04-22 14:57:10 +02:00
Tor Hedin Brønner eea0db3cf6 workspace mru: add some staggered scaling 2018-04-22 14:57:10 +02:00
Tor Hedin Brønner b48ac2fd15 _previewWorkspace ⟶ switchWorkspace
Move _previewWorkspace off of WindowManager, and rename to a more appropriate
name.
2018-04-22 14:57:10 +02:00
Tor Hedin Brønner 580c10df39 Fix minimize animations
Attach all cloneContainers to the BackgroundGroup, leaving it at the bottom of
the window group.

This seems to fix minimize animations.
2018-04-22 14:56:35 +02:00
Tor Hedin Brønner 7563ec7924 Shuffle stacking through get_parent 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner bd72f00ce8 Don't use const for scale 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 4421ec7d2b Simplify fixStack 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 4cccda6d05 Don't hide scratch windows 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 2ced462637 Never show window actors when navigating 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner acc7d543fe Android style workspace mru 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 3ca72b59f2 navigator: Stack workspaces in mru order 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner dd05a9f163 Add some scale to workspace animation 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner e35bcd6066 Always animate worspace change properly 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner b14820b702 Fix visibility on window startup and scratch toggle 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 9ceac0e8ec Fix workspace stack order 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 91627013ef fix navigator 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 61f7a1f530 Fix startup
Hide windowActors that aren't on the current workspace.
2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 6bc78f50c1 Add workspace specific background colors 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 3ead7e71dd Add a showHandler for windowactors 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 0d061618f4 Fix scratch
For some reason the cloneContainer changes triggers the no minimize animation
bug. This makes things usable.
2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 39f094f28e Use the clonecontainer to preview workspaces 2018-04-22 14:56:05 +02:00
Tor Hedin Brønner 5408a1e588 Use clones for all animation
Do all animations with clones, hiding window actors. When animations are
complete we toggle back to window actors if the window isn't stacked.

We put the clones in their own Space specific container in Main.uiGroup. Above
the BackgroundGroup (moved to the bottom of the uiGroup) and below the
window_group.

Also remove the then obsolete stackWindow.
2018-04-22 14:56:05 +02:00
Ole Jørgen Brønner d2f3784e1d Remove riot and copyq winprops from tiling
Should be up to the user
2018-04-15 11:55:53 +02:00
Ole Jørgen Brønner 2afbe05911 Cleanup: remove unused schema keys
Comes from the first example file :)
2018-04-15 11:23:29 +02:00
Tor Hedin Brønner a5311fc3dd Handle resizing asynchronously via size-changed
Resizing happens asynchronously on wayland, and running a second resize will
override any preceding commands apparently. This meant running ensure
synchronously in eg. `cycleWindowWidth` would fail to actually resize wayland
windows.

Instead we actually fix the underlying problem by running ensure when
`size-changed` happens.

As an added benefit there's no reason to handle fullscreen toggling separately.

Some technical notes:

- We need to connect `size-changed` after initial positioning is done, this is
  currently done on the actor's first `show` signal.

- ensure will itself resize windows, maximizing their height. This doesn't
  create an infinite loop as long as the window settles into a stable height.
2018-04-14 18:52:39 +02:00