hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.94k stars 914 forks source link

The position of imepopup is offset in some cases #7801

Open hdm9527 opened 2 months ago

hdm9527 commented 2 months ago

Already reported ? *

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit e74efd87e5aa38f9cf84cb3848ee1ab26e5e4bcb dirty (internal: fix initial cursor warping (7793)). Date: Sun Sep 15 06:37:18 2024 Tag: v0.43.0-25-ge74efd87, commits: 5221 flags: (if any) ```

Description

The position of imepopup is offset in some cases. I tested xwayland and wayland client and it only appears on wayland client.

How to reproduce

  1. Open two wayland clients, activate fcitx5 in the current focused window, and activate fcitx5 in the previous window. You will find that the imepopup position is offset.
  2. Swapping the two client positions, the position of imepopup is sometimes correct and sometimes incorrect.

Crash reports, logs, images, videos

https://github.com/user-attachments/assets/1e2d124a-6c9b-474e-84d7-81d51a6e7ce4

hdm9527 commented 2 months ago

@sungyoonc

stevenre3d commented 2 months ago

Do you have multiple displays connected by chance?

I suspect the issue I'm seeing is related. It seems like the popup's position is being calculated using stale information.

I have two displays, a 4k on the left, and a 1440 on the right. When Steam's splash screen, gimp's splash screen, or my rofi launcher first open up on a monitor, they are often in the wrong position.

Rofi experience:

hdm9527 commented 2 months ago

Do you have multiple displays connected by chance?

Single monitor.

ogabriel commented 2 months ago

I have the same issue @stevenre3d , mainly with orca slicer, and after I disable the "gliched" monitor and enable it again, everything goes back to how it should