Commit Graph
526 Commits
Author SHA1 Message Date
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
Tor Hedin Brønner 7dedfa0c63 Move initial MetaWindow connections to a more logical place 2018-04-13 21:39:53 +02:00
Tor Hedin Brønner 0dfa8d000e scratch: Force top bar visibility when showing the scratch layer 2018-04-13 20:05:55 +02:00
Tor Hedin Brønner 471300f8ec Refactor signal handling on MetaWindows 2018-04-13 20:05:44 +02:00
Tor Hedin Brønner 9afd8db94b Use notify::fullscreen to handle fullscreen functionality
`'in-fullscreen-changed'` only works for a single fullscreen window per
workspace. Meaning it's useless for our purposes.

This also makes neighbouring windows responsive to fullscreen changes.
2018-04-13 18:50:46 +02:00
Tor Hedin Brønner 1a74a7eaef tiling: Make signal control a bit easier 2018-04-13 18:50:42 +02:00
Tor Hedin Brønner e894c45e7f Push minimized windows to the scratch layer
TODO: Push to the bottom of the stack instead of the top
2018-04-12 22:52:33 +02:00
Tor Hedin Brønner a66d8fc4e7 scratch: When detaching/attaching windows also show/hide the scratch layer
Attaching and detaching windows could be somewhat disorienting. Eg. making the
focused window hidden by other floating windows when attaching the current
window to the tiling.
2018-04-12 20:11:50 +02:00
Tor Hedin Brønner 83fb20eb6a scratch: Add show/hide functions 2018-04-12 20:06:33 +02:00
Tor Hedin Brønner 030b030eab topbar: Handle visibility correctly when fullscreen is toggled 2018-04-12 17:04:54 +02:00
Tor Hedin Brønner 0c7f454878 topbar: Refactor signal tracking 2018-04-12 17:04:49 +02:00
Tor Hedin Brønner 1d8af9cc97 Move previewWorkspace to navigator 2018-04-12 17:00:26 +02:00
Tor Hedin Brønner efa637fc63 Move PreviewedWindowNavigator into new navigator module 2018-04-09 15:19:07 +02:00
Tor Hedin Brønner 83c2428507 disable -> enable: Reuse the old ordering if available
This is useful in the case of nothing changing between a disable and enable. For
instance when locking the screen. Having windows move around in that case is
pretty bad.

We do create a new spaces however as we want to support editing the `Space`
definition and getting the changes when we do a reload (this should work as long
as `Space` is an Array).
2018-04-09 15:19:07 +02:00
Tor Hedin Brønner 666aac0411 Move tiling specific enable functionality to tiling 2018-04-09 15:19:07 +02:00