Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IME: fix crash and auto enter #5428

Merged
merged 1 commit into from Apr 4, 2024
Merged

Conversation

sungyoonc
Copy link
Contributor

Describe your PR, what does it fix/add?

Fixes a crash with IME.
Fix auto entering a focused text input when new IME.

When the last focused surface before IME exit gets closed, it's not removed from m_vTextInputs. After this when you launch IME and try to move to a different text input, hyprland crashes.

Steps to reproduce

  1. Open any application with text input v1 or v3
  2. Exit/Kill IME
  3. Close the application from step 1
  4. Open two application with text input v1 or v3
  5. Focus on one application and launch IME
  6. Try change focus to another application
  7. Crash

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Not really

Is it ready for merging, or does it need work?

I think so

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@vaxerski vaxerski merged commit c4b660a into hyprwm:main Apr 4, 2024
5 of 9 checks passed
@sungyoonc sungyoonc deleted the fix-ime-crash branch April 6, 2024 15:02
lisuke pushed a commit to lisuke/Hyprland that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants