An open-source, self-hosted system for apps built with web technologies.
Pressing a window in the Taskbar, or holding a drag over it, takes you to its view
zohayrslileh76f8cb06dda9
diff --git a/source/client/view/structure/desktop/desktop.tsx b/source/client/view/structure/desktop/desktop.tsxindex ea812dc..0e00feb 100644--- a/source/client/view/structure/desktop/desktop.tsx+++ b/source/client/view/structure/desktop/desktop.tsx@@ -410,7 +410,7 @@ export default function Workspace() {{/* What a press means is composed here because it is a person'sexpectation, not a system operation: the front window hides;- another window is shown and brought forward, wherever it is. */}+ pressing another takes you to its view and brings it forward. */}{windows.listed.map(record => {const window = windows.presentation.projection(record.identity)diff --git a/source/client/view/structure/desktop/layers/shell/taskbar/programs/window-taskbar-item.tsx b/source/client/view/structure/desktop/layers/shell/taskbar/programs/window-taskbar-item.tsxindex b01bdee..c867fc3 100644--- a/source/client/view/structure/desktop/layers/shell/taskbar/programs/window-taskbar-item.tsx+++ b/source/client/view/structure/desktop/layers/shell/taskbar/programs/window-taskbar-item.tsx@@ -12,18 +12,20 @@ export default memo(function ({ record, title, icon, position, active, minimizedconst scaleContainer = useDesktopScaleContainer()+ // A press takes you to the window, in whatever view it is, and brings it forward; pressing the+ // window in front hides it.const press = useCallback(function () {if (active) onMinimize(record, true)- else onShow(record)+ else onGoTo(record)- }, [active, onMinimize, onShow, record])+ }, [active, onMinimize, onGoTo, record])- // A drag held over the entry shows its window in front, even a minimized one, so the drop can+ // A drag held over the entry takes you to its window too, even a minimized one, so the drop can// go there; unlike a press, it never minimizes the window.- const show = useCallback(() => onShow(record), [onShow, record])- const holdShows = useDragHold(show)+ const goTo = useCallback(() => onGoTo(record), [onGoTo, record])+ const holdShows = useDragHold(goTo)const source = useCallback((element: HTMLButtonElement | null) => { onElement(record, element); holdShows(element) }, [onElement, record, holdShows])const changeVisibility = useCallback(() => {@@ -33,7 +35,6 @@ export default memo(function ({ record, title, icon, position, active, minimized}, [minimized, onMinimize, onShow, record])const fill = useCallback(() => onFill(record), [onFill, record])- const goTo = useCallback(() => onGoTo(record), [onGoTo, record])const bringHere = useCallback(() => onBringHere(record), [onBringHere, record])const close = useCallback(() => onClose(record), [onClose, record])