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.
This commit is contained in:
parent
57a751dbdb
commit
05d15f387e
3 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ export namespace ImsdMessages::Ui {
|
||||||
StopFling();
|
StopFling();
|
||||||
// The composition ends with the window: committed into the field,
|
// The composition ends with the window: committed into the field,
|
||||||
// and the input method told (the disable Send's reset sends), so
|
// 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();
|
EndComposition();
|
||||||
vkDeviceWaitIdle(Crafter::Device::device);
|
vkDeviceWaitIdle(Crafter::Device::device);
|
||||||
if (blinkTimer) g_source_remove(blinkTimer);
|
if (blinkTimer) g_source_remove(blinkTimer);
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ export namespace ImsdMessages::Ui {
|
||||||
// compositor decides the real size on a phone anyway.
|
// 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) {
|
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 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 (!deviceError.empty()) throw std::runtime_error(deviceError);
|
||||||
if (!deviceReady) {
|
if (!deviceReady) {
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
|
|
@ -190,7 +190,7 @@ export namespace ImsdMessages::Ui {
|
||||||
try {
|
try {
|
||||||
Crafter::Device::Initialize();
|
Crafter::Device::Initialize();
|
||||||
} catch (const std::exception& e) {
|
} 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;
|
throw;
|
||||||
}
|
}
|
||||||
deviceReady = true;
|
deviceReady = true;
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
||||||
// The window library.
|
// The window library.
|
||||||
Configuration* graphics = local
|
Configuration* graphics = local
|
||||||
? LocalProject({ .projectFile = "../Crafter/Crafter.Graphics/project.cpp", .args = depArgs })
|
? 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,
|
// imsd-messages-core — numbers, time, the model, word wrap, gestures,
|
||||||
// the message field's editing, the store and the sync logic: std +
|
// the message field's editing, the store and the sync logic: std +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue