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 IME popup mouse inputs (again) #5417

Merged
merged 1 commit into from
Apr 7, 2024
Merged

Conversation

MikeWalrus
Copy link
Contributor

lastBoxLocal's size should be the actual popup's size instead of the cursor rectangle's size. Also, the rectangle position is now relative to the popup. (Actually fixes #5255 imho.)

One thing #3922 missed was handling focus held by buttons. Let's hope I get it right this time.

There should be no regression in scaling and rendering, but I'm not entirely sure. cc @q234rty @sungyoonc

Before:

hyprland_ime_pointer_before_c

After:
hyprland_ime_pointer_after_c

@vaxerski
Copy link
Member

vaxerski commented Apr 4, 2024

wtf is that IME lmao :D

src/managers/input/InputMethodPopup.cpp Outdated Show resolved Hide resolved
src/managers/input/InputMethodPopup.cpp Outdated Show resolved Hide resolved
`lastBoxLocal`'s size should be the actual popup's size instead of the cursor
rectangle's size. Also, the rectangle position is now relative to the popup.
(Actually fixes hyprwm#5255 imho.)

One thing hyprwm#3922 missed was handling focus held by buttons. Let's hope I get
it right this time.
@MikeWalrus
Copy link
Contributor Author

wtf is that IME lmao :D

It's my DIY handwriting recognition input method. :P

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.

ok

@vaxerski vaxerski merged commit d657b59 into hyprwm:main Apr 7, 2024
9 checks passed
lisuke pushed a commit to lisuke/Hyprland that referenced this pull request Apr 15, 2024
`lastBoxLocal`'s size should be the actual popup's size instead of the cursor
rectangle's size. Also, the rectangle position is now relative to the popup.
(Actually fixes hyprwm#5255 imho.)

One thing hyprwm#3922 missed was handling focus held by buttons. Let's hope I get
it right this time.
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.

zwp_input_popup_surface_v2::text_input_rectangle is relative to wrong surface
3 participants