chore(linux): add comment on purpose of is_dirty flag

Addresses code review comment.
This commit is contained in:
Eberhard Beilharz 2026-04-08 18:16:08 +02:00
parent b71f299d7e
commit ad9128eb1d
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -86,6 +86,9 @@ struct _IBusKeymanEngine {
IBusProperty *status_prop;
IBusPropList *prop_list;
void *settings;
// Flag indicating if there are pending changes (forwarded keystrokes,
// deleted surrounding text) that need to be applied by committing an
//empty text to the input engine
gboolean is_dirty;
commit_queue_item commit_queue[MAX_QUEUE_SIZE];
@ -645,7 +648,7 @@ static void commit_string(IBusKeymanEngine *keyman, const gchar *string)
/**
* Commit an empty string to flush the surrounding text buffer.
*
*
* Wayland uses double-buffering for surrounding text and some other
* functionality, so we have to commit to apply the changes.
* See https://wayland.app/protocols/input-method-unstable-v2