Jumps back to first workspace when certain apps exit

Hyprland version
Hyprland 0.51.0 built from branch  at commit 46174f78b374b6cea669c48880877a8bdcf7802f  (version: bump to 0.51.0).
Date: Wed Sep 10 12:41:05 2025
Tag: v0.51.0, commits: 6418
built against:
 aquamarine 0.9.4
 hyprlang 0.6.3
 hyprutils 0.8.4
 hyprcursor 0.1.13
 hyprgraphics 0.1.5


no flags were set

I’m running into a strange issue when certain apps close their window, Hyprland immediately jumps back to workspace 1.

The particular app is wezterm (I’m finally moving off gnome-terminal. For example, if I’m on workspace 5, open wezterm there, then close it, I’ll jump back to workspace 1. Even if I have other apps open like Emacs, or a video player, or VS code.

I’ve also noticed this happens with VLC as well. I haven’t seen it on any other apps, but its pretty consistent with these 2. Not 100% of the time, but 80% of the time.

Any ideas?

maybe it’s focus_on_activate and wezterm being cringe as usual?

JSYK, wezterm is by far the most broken terminal on wayland. The amount of “bugs” I’ve gotten that were wezterm being broken is off the charts.