From 05d15f387ed0065cf4faa93bd390a0c83f6e2550 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sat, 31 Oct 2026 18:11:40 +0100 Subject: [PATCH] Ui, project: Crafter.Graphics at 6f471ca, whose text-input disable ends the composition The pinned library kept its record of the last composing text it had reported across the app's disable of the text input (only the compositor's leave cleared it) and reported a later composition only when it differed from that record or a commit came with it: after Send's, a tap's or a hide's reset, a first composition equal to the last word shown, with no commit beside it, never reached the field. Crafter.Graphics 6f471ca clears the record and the pending flags on the disable, as the leave does; the app's resets all go through that disable and need nothing more. The pin moves from 079b6b0 to the library's master of 2026-10-31, ten commits on: windows on compositors without xdg-decoration, viewporter or fractional scale, device features the application asks for (the defaults serve this one), the descriptor heap's rounding, ray-tracing and Win32 fixes, a WebGPU example's build fix, the library's AGENTS files. The event orders and contracts this app relies on hold at the new commit; the vendored code and the licence texts are unchanged. The library ships consumer notes from this commit on (AGENTS.consumer.md); crafter-build since 4.0.0 writes them only into an AGENTS.md it generates from an AGENTS.template.md, and this app has none: its AGENTS.md is written by hand and no build touches it. --- interfaces/ImsdMessages.Ui-App.cppm | 2 +- interfaces/ImsdMessages.Ui-Canvas.cppm | 4 ++-- project.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interfaces/ImsdMessages.Ui-App.cppm b/interfaces/ImsdMessages.Ui-App.cppm index 25d8515..5facb67 100644 --- a/interfaces/ImsdMessages.Ui-App.cppm +++ b/interfaces/ImsdMessages.Ui-App.cppm @@ -51,7 +51,7 @@ export namespace ImsdMessages::Ui { StopFling(); // The composition ends with the window: committed into the field, // and the input method told (the disable Send's reset sends), so - // it does not carry the word into the next window. + // neither it nor the library carries the word into the next window. EndComposition(); vkDeviceWaitIdle(Crafter::Device::device); if (blinkTimer) g_source_remove(blinkTimer); diff --git a/interfaces/ImsdMessages.Ui-Canvas.cppm b/interfaces/ImsdMessages.Ui-Canvas.cppm index 9eabdf0..d2d2ac5 100644 --- a/interfaces/ImsdMessages.Ui-Canvas.cppm +++ b/interfaces/ImsdMessages.Ui-Canvas.cppm @@ -181,7 +181,7 @@ export namespace ImsdMessages::Ui { // compositor decides the real size on a phone anyway. void Create(std::uint32_t widthDp, std::uint32_t heightDp, std::string_view title, std::string_view appId, const std::filesystem::path& assetDir, const std::filesystem::path& cacheDir) { static bool deviceReady = false; - static std::string deviceError; // the library's set-up cannot run twice: a failure is final + static std::string deviceError; // a failed set-up is final: the app asks the library for nothing it could ask less of if (!deviceError.empty()) throw std::runtime_error(deviceError); if (!deviceReady) { std::error_code ec; @@ -190,7 +190,7 @@ export namespace ImsdMessages::Ui { try { Crafter::Device::Initialize(); } catch (const std::exception& e) { - deviceError = std::format("{} (the device's set-up cannot be run again)", e.what()); + deviceError = std::format("{} (the device's set-up is not run again)", e.what()); throw; } deviceReady = true; diff --git a/project.cpp b/project.cpp index c295d30..7eeb28d 100644 --- a/project.cpp +++ b/project.cpp @@ -85,7 +85,7 @@ extern "C" Configuration CrafterBuildProject(std::span a // The window library. Configuration* graphics = local ? LocalProject({ .projectFile = "../Crafter/Crafter.Graphics/project.cpp", .args = depArgs }) - : GitProject({ .source = { .url = "https://forgejo.catcrafts.net/Catcrafts/Crafter.Graphics.git", .commit = "079b6b0e1fa5ae5267086e61b0658b1c2704d14e" }, .args = depArgs }); + : GitProject({ .source = { .url = "https://forgejo.catcrafts.net/Catcrafts/Crafter.Graphics.git", .commit = "6f471ca6b1f83a7b9e0f653e1f73fa428596cb00" }, .args = depArgs }); // imsd-messages-core — numbers, time, the model, word wrap, gestures, // the message field's editing, the store and the sync logic: std +