Messages app for imsd messages dbus
  • C++ 94.2%
  • Shell 3.9%
  • Python 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf a679ac7e6e
Gesture, Ui, project: Crafter.Graphics at 3f646ec, whose key repeat fires once at the delay
The pinned library's key repeat counted the compositor's delay as missed
periods: lastFireTime was the press itself and the catch-up loop fired
once per period since it, so the first repeat after the delay was a
burst of floor(delay / period) events — with rate 25 and delay 600 a
held Backspace deleted sixteen characters at the delay mark and a held
letter put fifteen copies in the field, from a hardware keyboard and
from an on-screen keyboard that sends Backspace as key events; a rate
above 1000 made the period zero and the loop endless. Crafter.Graphics
3f646ec lands the first repeat at the delay, keeps the period at a
millisecond or more and caps the catch-up after a stalled frame; the
app's own repeat timer and the frame path's TickKeyRepeats need nothing
more.

The pin moves from 6f471ca to the library's master of 2026-11-01, eight
commits on: the swapchain sized for its present mode and frames in
flight keyed by frame, the font atlas's SDF decoded in atlas pixels and
glyphs that find no room given a cell at the next frame, Win32 linking
and titles and a Win32 test's stand-in dropped, the library's AGENTS
template, the key repeat. One contract changes with a4be6f1: once the
atlas evicts, a glyph item is good for the frame it was shaped for, so
item buffers must be one set per frame in flight (the library's usage
contract since; its HelloUI shows it). The Canvas's layers keep
Window::numFrames sets of their quad, circle and glyph buffers and fill
the one at UIBuildArgs::frameIdx, where one set had served the three
frames paced by frame callbacks — about 3 MB of host-visible memory in
all; the descriptor heap grows to hold their slots. The atlas's contract
changed with the eviction: a glyph that finds no free cell draws blank
and gets one when the next frame begins — a frame this app, drawing on
demand, has to ask for: the layers count the glyphs drawn blank
(FontAtlas::Lookup, not Resident) and Build asks for another frame while
glyphs wait, until the frames in flight plus one have passed without a
cell gained — a cell comes from glyphs not drawn in those frames, so a
screen change needs that many before the cells it displaced come free
(FrameWait in Gesture, beside the fling's frame rule, added with this,
its use — restarted by every redraw request and by each frame of a
fling, which changes what is drawn as a request does — and tested
there). The other contracts this app relies on hold at the new commit:
the disable ends the composition and clears the shown record,
CaptureNextFrame writes its PNG inside the frame that records the copy,
a touch's up precedes the synthesised release, the deletion queue still
wants the app's drain when a window ends (DrainDeletions), libevdev
stays vendored; the licence texts are unchanged.
2026-11-18 01:13:56 +01:00
.forgejo/workflows ci: build the aarch64 flatpak and publish it 2026-11-18 01:13:56 +01:00
assets project: the repository skeleton 2026-10-17 23:14:00 +02:00
implementations Bus, main: start at login through the Background portal 2026-11-18 01:12:28 +01:00
interfaces Gesture, Ui, project: Crafter.Graphics at 3f646ec, whose key repeat fires once at the delay 2026-11-18 01:13:56 +01:00
packaging ci: build the aarch64 flatpak and publish it 2026-11-18 01:13:56 +01:00
tests Gesture, Ui, project: Crafter.Graphics at 3f646ec, whose key repeat fires once at the delay 2026-11-18 01:13:56 +01:00
utilities main, utilities: bench helpers and a fake imsd 2026-11-18 01:12:27 +01:00
.gitignore project: the repository skeleton 2026-10-17 23:14:00 +02:00
AGENTS.md ci: build the aarch64 flatpak and publish it 2026-11-18 01:13:56 +01:00
FUNDING.yml project: the repository skeleton 2026-10-17 23:14:00 +02:00
LICENSE project: the repository skeleton 2026-10-17 23:14:00 +02:00
project.cpp Gesture, Ui, project: Crafter.Graphics at 3f646ec, whose key repeat fires once at the delay 2026-11-18 01:13:56 +01:00
README.md ci: build the aarch64 flatpak and publish it 2026-11-18 01:13:56 +01:00

imsd-messages

The SMS app for imsd on Linux phones. imsd 2.0.0 carries texts over IMS and keeps them until a messaging app takes them; this is that app. It speaks imsd's net.catcrafts.IMS1.Messaging D-Bus interface: no ModemManager, no modem.

Install the flatpak (aarch64) from the Catcrafts remote; its runtime comes from Flathub:

flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo
flatpak install catcrafts net.catcrafts.ImsdMessages

It asks the desktop to start it at login without a window. To stop that:

flatpak permission-set background background net.catcrafts.ImsdMessages no
rm -f ~/.config/autostart/net.catcrafts.ImsdMessages.desktop

Building

This project uses Crafter.Build:

crafter-build          # the executable
crafter-build test     # the unit tests
crafter-build lint     # the house-style rules

The flatpak's build is in AGENTS.md.

License

GPL-3.0-only - see LICENSE. The bundled font (Noto Sans) is under the SIL Open Font License 1.1, see assets/OFL.txt.

Funding

https://catcrafts.net/shop/donation - see FUNDING

Copyright (C) 2026 Catcrafts® catcrafts.net