-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes multiple issues identified during using the IM: 1. Make IM activation/deactivation based on text-input::{enable/disable} and keyboard focus leave, instead of just keyboard focus changes. 2. Send `text_input::enter` on text-input creation, since some bind global after getting focus. 3. Don't activate IME for clients which don't have text_input instance, otherwise keyboard input will be disabled in general due to grabbing. 4. Add `new_popup` and `dismiss_popup` to update IM popup in response to IM text_input::{enable/disable} events. 5. Use text-input coordinates for input-method popup positioning IM popup positioning. The width and height mark the region you shouldn't obscure. 6. Fix serial handling to match input-method-v2 and text-input-v3 specifications. input-method-v2 also requires counting amount of done events and using it to discard commit when it doesn't match text-input. text-input-v3 just wants serial with value equal to the number of commits being sent for the client.
- Loading branch information
Showing
10 changed files
with
329 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.