-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
text_input: Implement input-method popups #7226
Conversation
243cfc6
to
8c789a9
Compare
I'm not sure but I don't think this currently works at all? i.e. the original PR needs changes after https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3660 . |
Emm, It seems still works with the wlroots master and sway master, and I also make changes with the suggestion of the maintainer.. |
8c789a9
to
41f275e
Compare
@Decodetalkers Does the input popup correctly disappear after you commit some text? |
I cannot understand, what kind of "uncorrect", can you show me a video ? I cannot reproduce anything.. |
mov-2022-10-28--17-05-11.mp4 |
I see, I reproduced it on foot.. but wezterm do not have such problem.. Interesting.. |
41f275e
to
cf04676
Compare
Now it should be fixed |
bf22658
to
4bd7fbc
Compare
cba433e
to
e2a9a60
Compare
e2a9a60
to
bb7100e
Compare
bb7100e
to
d1c6e44
Compare
Does this show horizontal pop-ups or vertical pop-ups? |
@amano-kenji This depends on your IME. The popup is rendered by the IME. |
Is it going to be merged soon? It sems Hyprland already merged this feature. |
d1c6e44
to
2942805
Compare
b3f88aa
to
4790391
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
@cherrot open a new issue for this |
Maybe my comment here is missed. I found this problem is not present in sway-im AUR where scene-graph API is not adopted yet. |
ok, thanks |
struct sway_input_popup *popup; | ||
wl_list_for_each(popup, &relay->input_popups, link) { | ||
// send_text_input_rectangle is called in this function | ||
input_popup_update(popup); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input_popup_update()
is a pretty big hammer, it means we'll create/destroy scene nodes every time a keypress is made. But let's keep this as-is for now and leave the optimization for later.
Alright, I think this is the last round of comments from me! |
remove useless line, and code style adjust
Thanks, I have finished it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, let's go with this then, thanks a lot for your hard work! I think many users will be thankful :P
swaywm/sway#7226 is merged swaywm/sway#6249 looks dead :( also simplified ./overlays
So, will there be a release anytime soon that includes this? Because the patch was reworked on top of the new rendering system and the new rendering system is not included in the 1.9 release, there is no way currently to have popups on sway 1.9. So I'm stuck with sway 1.8.1 and an old version of this patch. |
Non-bugfix sway releases follow wlroots releases. If you need features newer than the latest release, you can always build sway and wlroots master. There's even recipes and packages for some distros by community members (AUR, Copr, debian/ubuntu repos, etc.). |
So no? Okay then... |
There is a patch for sway 1.9 on AUR: https://aur.archlinux.org/packages/sway-im, extracted from commit |
May I continue this pr in #5890 ?