Repository navigation
mini-oled-dock 1.3.0
Everything in this release comes from three pull requests by VanheXen: #3, #4 and #5. Thanks!
Changes since 1.2.1: two important fixes, one animation fix and a large internal clean-up. No new options, no config changes: an old config.json keeps working.
Fixes
- The dock keeps working across Explorer restarts (#5). After Explorer restarted (a crash, a Windows update or a manual restart), apps and menu items launched from the dock failed with an empty error, and tray icons went to Explorer's hidden taskbar. The only way out was to restart both Explorer and the dock. 1.2.1 and earlier have this bug. Now the dock steps its tray host aside while Explorer comes back. About 2 s later it starts the host again and announces the tray, so launches work and the tray icons return to the dock.
- Multi-monitor: the screen edge of any display shows the bar (#3). With Settings → Screen → Pointer, touching the bottom edge of another display did nothing, and only the Win key moved the bar there. Now the edge of the display under the pointer brings the bar to that display with the usual slide-in, even while the bar is still visible on the other display.
- Win double tap animates Start with the bar (#4). With the bar hidden, the double tap slid the bar in but showed the Start menu without the animation. The double tap and Win key opens Start now share one code path, so Start slides in together with the bar in both cases.
Under the hood
#4 gives one implementation to behaviour that existed in two or more places: 15 files, −511 lines. Rendering is unchanged: the 80 --preview images (bar and every popup, at two DPIs) are byte-identical before and after.
- The bar's drawing layer (
render.rs) now uses the primitives insurface.rsinstead of a copy of them.render.rsgoes from 1825 to 1358 lines. - The Settings and volume popups share one slider.
- Tray app names are read the same way as the bar's app names.
version.dllis no longer loaded. - The Start popups take their labels from the common translation table (
i18n::tr). - Monitor info, the instant hide, the apps window hook, the AppBar fallback, the
TaskbarCreatedbroadcast and the Win+D fallback each have a single implementation.
Tray names: for an exe with several version-resource languages, the description shown may now be a different language than before.
Install / update
Requires Windows 11. Download dock.exe and run it from a terminal:
.\dock.exe --installIt asks for administrator rights, copies itself to %ProgramFiles%\mini-oled-dock and starts with Windows. To update, run --install from the new dock.exe: the running dock is stopped and restarted from the new copy. Settings are kept.
Known limitations
Same as 1.2.0. After an Explorer restart the dock's tray is empty for about 2 seconds while Explorer starts up.
SHA256 of dock.exe: ab80af684233def49f01ca4da93eb0dab1eb407ac1cf216031250f3b1845f4c8