**Steps to Reproduce:** 1. Install CachyOS on a PC with more than 1 screen 2. Install espanso-wayland from the AUR 3. If applicable, remember to specify keyboard layout in default.yml (cf. here: https://espanso.org/docs/install/linux/#install-on-wayland) 4. Open CachyOS System Settings > Apps & Windows > Window Management > KWin scripts 5. Click "Get new" button in top right corner and install "Remember Window Positions" script (cf. here: https://www.reddit.com/r/cachyos/comments/1p843w9/remember_window_positions_kde_kwin_script_restore/) 6. Open Kate and another app, e.g. Brave browser or even another Kate window on another screen 7. In Kate, type :espanso **Description:** Espanso pastes text strings in different windows than the one the user is in. This happens when more than 1 screen is connected to the computer and when the "Remember Window Positions" KWin script is active. **All details + conversation with Espanso developer:** I already reported this exact bug on the Espanso GitHub. Perhaps you can jump in there? https://github.com/espanso/espanso/issues/2630#issuecomment-3819370521