v0.5.1 — Patch Release
v0.5.1 — Patch Release
Bug Fixes
Auto-pause on non-text area focus loss:
Added GTK focus-out-event handler with 50ms debounce. When the user clicks Firefox's title bar or the desktop background, the handwriting window now auto-pauses instead of remaining stuck in a state where neither IBus nor GTK key events can reach it. Guarded by _has_drawn to avoid confusing startup behavior.
present() skipped on second activation:
Removed the _focused_since_enable guard from _grab_focus_if_needed — present() is now always called. Previously, a spurious XFCE do_focus_in signal before the idle handler ran would skip present(), leaving the window visible but without keyboard focus — ESC and auto-pause silently failed after the first activation cycle.
X11 property flush timing:
Moved set_accept_focus(True) to do_enable() before show_all() and GLib.idle_add. Previously, both calls were in the idle handler — GTK batches X11 WM_HINTS, so the WM still saw accept_focus(False) and denied focus. Now the X11 property is flushed before present(), granting focus reliably on every activation.
Assets
.deb(Debian 11+/Ubuntu 22.04+/Mint 21+).rpm(Fedora 40+/openSUSE Tumbleweed)- Source tarball
.tar.gz