diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-17 18:07:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 18:07:46 +0200 |
commit | 67a2040cad9cdbaee3ad0f768cc673b76f1fc2dd (patch) | |
tree | 9c5df45a32df1446571e5a11430f086c018248a8 | |
parent | 5893b197ba8bec9536ee17420171c82c1cd7a54c (diff) | |
parent | 14c6ee894edfbef9a4f9c9de546c77ee6f261940 (diff) |
Merge pull request #1318 from dcz-purism/text_input_error
text-input: Don't reject enable requests when unfocused
-rw-r--r-- | types/wlr_text_input_v3.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/types/wlr_text_input_v3.c b/types/wlr_text_input_v3.c index 52c0fcc9..6ec0762a 100644 --- a/types/wlr_text_input_v3.c +++ b/types/wlr_text_input_v3.c @@ -175,11 +175,10 @@ static void text_input_commit(struct wl_client *client, text_input->current_enabled = text_input->pending_enabled; text_input->current_serial++; - if (text_input->current_enabled && text_input->focused_surface == NULL) { - wl_resource_post_error(text_input->resource, 0, "Text input was not" - "entered, and cannot be enabled\n"); - return; + if (text_input->focused_surface == NULL) { + wlr_log(WLR_DEBUG, "Text input commit received without focus\n"); } + if (!old_enabled && text_input->current_enabled) { wlr_signal_emit_safe(&text_input->events.enable, text_input); } else if (old_enabled && !text_input->current_enabled) { |