wgpu's OpenGL adapter has no device id and guesses its kind from its
strings: every Intel GPU is "integrated". With no display known (Remote
Desktop), an Intel discrete GPU's OpenGL adapter therefore outranked its own
Direct3D 12 adapter, was declined, and the app fell back to glow although
Direct3D 12 worked (CodeRabbit). An OpenGL adapter now comes after any
other adapter of the same vendor, matched by vendor since OpenGL has no
device id, before kinds are compared. An OpenGL-only GPU still beats the
software adapter, whose vendor is Microsoft.
The test now models wgpu's OpenGL adapters as wgpu reports them: the
vendor's id, device 0 and the guessed kind.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
pick_adapter ranked adapters without their backend, so a GPU that wgpu
offers through both Direct3D 12 and OpenGL got its Direct3D 12 adapter
only because wgpu lists it first. The backend is now the last part of the
ranking. An OpenGL-only GPU still beats the software adapter by kind, and
the selector then declines it so that glow starts on that GPU.
The test covers Direct3D 12, Vulkan, OpenGL and software adapters, in
both orders and with no display known (FredApps' review).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The selector, which now declines wgpu's OpenGL backend, was only
installed when a display's GPU was found by its PCI ids. A display that
has none, such as Remote Desktop's, left wgpu's own choice in charge,
and that could still pick an OpenGL-only GPU. It now runs on Windows
always; with no display known, pick_adapter ranks adapters by kind, most
frugal first, as wgpu's low-power choice does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
An Intel HD 2500 or 4000 (Ivy Bridge) has no Direct3D 12 driver, so wgpu
picks its OpenGL backend. That backend fails in Surface::configure a few
seconds after the window opens ("Failed to wait for GPU to come idle"),
after the start-up retry with OpenGL can help, so the app closed with a
white window (#519, #4134, #5553). eframe's own OpenGL renderer works on
the same GPUs, which is the PDFCRAFT_RENDERER=gl workaround.
The adapter selector now declines an adapter on wgpu's OpenGL backend on
Windows, unless WGPU_BACKEND asked for it, so the existing start-up retry
draws with eframe's OpenGL renderer instead.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
#1080 ran a hidden PowerShell after install and uninstall that P/Invoked
shell32 SHChangeNotify(SHCNE_ASSOCCHANGED). Microsoft Defender flags that
pattern as a malicious command line and shows the user a security alert
(reported on v0.23.0). Remove the custom action; test-msi.ps1 now fails if
any custom action runs PowerShell.
Trade-off: Explorer's cached "Open with" list may miss PdfCraft until
sign-out after a fresh install, as before #1080.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* feat(ui): use compact icon buttons for text selection actions menu
* fix(ui): open text selection action menu at the end of selected text
* fix(ui): suppress text selection context menu when using comment box
* fix(ui): preserve selection toolbar on button focus and page drags crossing comment box
* test(ui): adjust selection bar viewport containment test for end-anchored icon toolbar
* fix(ui): anchor selection toolbar to drag head on same-page backward multiline selection
* test(ui): update same-page backward assertion in the_selection_bar_sits_where_the_drag_ended
* fix(tests): adapt selection and comment tests to Craft port session structure
* Running CI
* fix(selection): anchor selection bar at endpoint and scope tests to Selection toolbar
* M3: restore native Wayland pinch through the resolved winit fork
Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.
* docs: record native pinch verification and keep roadmap quotes contiguous
Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.
---------
Co-authored-by: FredApps <[email protected]>
* feat(nightly): onboard PdfCraft to signed two-stage nightly releases
* chore: update Cargo.lock for rfd dependency in pdfcraft app
* chore: retrigger CI checks
* fix(nightly): enable Linux package_formats (including Flatpak) in signing policy
* fix(nightly): fix unused import, attribute nightly icons, and wire -Nightly/-BuildOnly in package.ps1
* test(nightly): exclude packaging/** from coverage and add nightly bootstrap unit tests
On a Mac runner, 49 ui-egui tests and one perf test failed that pass on
Linux:
- The test runtime took the build machine's shell (ShellInfo::default),
so a Mac runner had macOS's key table and chords, and ctx.set_os only
changed egui's OS. support::install_runtime (and perf.rs's copy) now
pin the shell to Linux with craft's testing set_os. A test of another
platform still sets it as before.
- The in-window menu bar and the palette laid their menus out for
Target::current() (the build's OS) instead of the shell's. They now use
Target::of_shell, which craft-menu documents for a shell on another OS
than the build's. Production is unchanged: there the shell is the
build's.
- wheel_frames_build_only_the_pages_in_view scrolls three lines per event
(one wheel notch), since a line is 40 points on macOS and 100
elsewhere.
Refs #8630
When doc_save can't replace the file it was opened from (read-only,
extended attributes it can't keep, a folder that refuses the new file),
the file and the unsaved edit are kept, but since the writer moved into
craft-libs the message no longer said how to keep the work. 0.22.0 said
"save a copy with Save As". An in-place save's refusal now ends with
that again; a save to a new path is unchanged.
Refs #8630
Addresses review: between the existence check and the stream write,
another process could delete or rename the target, and the write would
then recreate it as an empty file. The target is now opened without
FILE_SHARE_DELETE, so it can't be deleted or renamed until the zone is
written, and the check reads that handle's metadata.
Refs #8622
development.md listed the other build inputs but not CRAFT_I18N_DIR.
Co-authored-by: Fredrik Hallin <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
- app/files.rs called macos_association::repair without the crate::
path the other callers use. The line only compiles on macOS, so main
hasn't built there since 2026-11-23 (nightly macOS red, #8595).
- The native menu's events are collected by NativeMenu::poll, and
nothing called it after the UI port, so the menu bar's clicks and key
equivalents stayed queued. menus::frame now polls once per frame,
before set_gate, as craft-menu documents.
Carries the fix from #8166 by @patangay for the v0.23.0 release.
Refs #8595, #8624
Co-authored-by: patangay <[email protected]>
On NTFS, writing <path>:Zone.Identifier creates <path> when it doesn't
exist. mark_from now returns NotFound for a target that isn't an existing
file, so marking a saved attachment never leaves an empty file behind.
This is what kept the Windows gate red on main: the scripted file service
records the save without touching disk, and the zone mark then created
the destination file.
Fixes#8622
CRAFT_FONTS_DIR has to be passed on the command line, so a plain
`cargo build --release` silently produces a CJK-blind binary: build.rs warns
"no craft-fonts embedded: Chinese and Japanese text will render as empty boxes"
and carries on. A build-time requirement that lives only in a warning is one
that gets forgotten and comes back as a bug report about missing glyphs.
relative = true resolves against the repo root rather than hardcoding an
absolute path, on the assumption the warning already makes: that craft-fonts is
cloned beside this repo. No force, so a CRAFT_FONTS_DIR already in the
environment still wins for a one-off build against a different font set. If
craft-fonts is absent, behaviour is unchanged — build.rs warns exactly as now.
This mirrors deckcraft's own config, which already ships this block.
Verified with the variable removed from the environment
(env -u CRAFT_FONTS_DIR cargo build --release): the crate recompiled and the
warning did not appear.
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Fredrik Hallin <[email protected]>