mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
chore(linux): add comment on purpose of is_dirty flag
Addresses code review comment.
This commit is contained in:
parent
b71f299d7e
commit
ad9128eb1d
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue