mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-27 10:52:52 +01:00
When the workspace of a monitor is switched, the windows of the workspace that is left slide out of the monitor and those of the one that is switched to slide in from the other side, as ghosts, together: from the right when going to a higher workspace (or right across the edge of a workspace with the Workspace cross boundary behaviour) and from the left when going to a lower one (or left). It is one of the animation kinds, so it is on with animations for everything and can be turned off with the workspace entry of animation.enabled, and it needs ghost movement. It is not done when either workspace has a maximized window or windows are not hidden by cloaking them, and a window that cannot be pictured is hidden or shown at once. None of a ghost is drawn outside of its monitor, so nothing is shown on a monitor next to it. The border of a window that slides in is held until the window is shown, as it cannot be cut off at the edge of the monitor. Windows of Chromium and Electron apps, and other apps that render through a swap chain, are left with a stale render target by being laid out, or asked to render, while they are hidden, so a window that slides in: - shows the picture that was kept of it when it left, and is not asked for a new one while hidden (one with no picture, if it is such an app, is shown at once); - is not laid out at all if it is where it is to be, and is laid out once it is shown, and not before, if it is such an app; - is not focused until it is shown, as focusing a hidden window shows it; - is shown before it is laid out when it has to be shown at once, and is held hidden against the layouts that follow the switch until then. The container that is to be focused on a workspace that is crossed into is focused before it is laid out, and not after, which would place its windows twice.