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

wezterm calls _xcb_xim_open repeatedly creating an enormous number of windows #16

Open
yshui opened this issue Aug 30, 2024 · 1 comment

Comments

@yshui
Copy link

yshui commented Aug 30, 2024

Discovered in yshui/picom#1289

wezterm calls _xcb_xim_open, because it does not have an IC. _xcb_xim_open calls wezterm's open_callback, which calls xcb_xim_create_ic. However the callback passed to xcb_xim_create_ic is never called.

The reason for that is because in _xcb_xim_process_queue, im->current is not NULL, presumably because a previous request is not completed yet. as to what happened to that request, i don't know.

wezterm is using an older version of xcb-imdkit (1.0.3), don't know if a problem like this is fixed or not.

@yshui yshui changed the title wezterm calls _xcb_xim_open repeated creating an enormous number of windows wezterm calls _xcb_xim_open repeatedly creating an enormous number of windows Aug 30, 2024
@wengxt
Copy link
Member

wengxt commented Sep 11, 2024

I feel it is a bug about how they use the api.

xcb_xim_open should only be called once through the app life time, until a xcb_xim_close is called.

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

No branches or pull requests

2 participants