Skip to content

IME candidate window won't follow the cursor after new window() #20998

@theoractice

Description

@theoractice

Describe the bug

In the screenshot new Window() is called in background (created but not shown) after 5 seconds, then the IME candidate window just won't follow the cursor.
If you switch to other windows and switch back, the candidate window starts moving again:
Image
However for situations where the main window must always have focus, This is unacceptable.

To Reproduce

Simply create a window via

        Window window = null!;
        private async void Window_Loaded(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
        {
            await Task.Delay(5000);
            Dispatcher.UIThread.Post(() =>
            {
                window = new Window();
            });
        }

Then after 5 seconds, IME candidate window will not move at all as you type.

Expected behavior

IME candidate window should behave as normal.

Avalonia version

11.3.x and 12.0.0-rc1

OS

Windows

Additional context

MRE
AvaloniaApplication1.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions