Other Monitor randomly steals focus, interrupting typing

Hyprland version
Hyprland 0.56.1 built from branch v0.56.1 at commit 5c9377c15f85c50648f35ca5a213754f95b93ca0 clean (version: bump to 0.56.1).
Date: Mon Jul 27 16:33:49 2026
Tag: v0.56.1, commits: 7643

Libraries:
Hyprgraphics: built against 0.5.1, system has 0.5.1
Hyprutils: built against 0.14.0, system has 0.14.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.8, system has 0.6.8
Aquamarine: built against 0.14.0, system has 0.14.0

Version ABI string: 5c9377c15f85c50648f35ca5a213754f95b93ca0_aq_0.14_hu_0.14_hg_0.5_hc_0.1_hlg_0.6
no flags were set

Describe your issue / feature…

I can’t figure what’s going on here, but I have a dual monitor setup in vertical stack, and the top monitor sometimes seems to randomly steal focus into whatever app is currently running in the top monitor, even as I’m actively typing into an app in the bottom monitor. I’ve already tried disabling mouse warp, focus_on_activate, and set custom window rules so that anything Steam (i.e. notifications) don’t grab away focus, but it still just happens every once in a while, sometimes in repeated bouts.

I need advice or a pointer as to what’s going on.

Upon further attempt at investigation, it could be that Steam is creating windows with empty initial titles/classes. So I’m going to try making a simple window match with no_initial_focus to see if that catches those happenings.

It’s definitely Steam at fault here, but I’m going crazy trying to figure out how to stop it from grabbing focus!

I just tried with:

hl.window_rule({
  name = 'fix-steam-focus',
  match = { initial_class = 'steam' },
  no_initial_focus = true,
  suppress_event = 'activatefocus',
})

and i cant get it to steal focus like that no matter what i do