Treat all windows from the same application as one window

Hyprland version
Hyprland 0.52.2 built from branch v0.52.2 at commit 386376400119dd46a767c9f8c8791fd22c7b6e61 clean ([gha] Nix: update inputs).
Date: Wed Dec 3 22:59:30 2025
Tag: v0.52.2, commits: 6581

Libraries:
Hyprgraphics: built against 0.4.0, system has 0.4.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.7, system has 0.6.7
Aquamarine: built against 0.10.0, system has 0.10.0

no flags were set

Apologies in advance if this is a duplicate topic. I’ve been reading the wiki, and thought that maybe groups were the right idea, but it doesn’t seem to be doing anything for me.

This is the scenario I’m trying to handle: I’m in my mail client, and the mail client opens a pop-up window dialogue. I switch over to my browser to look something up, then when I try to go back to my mail client, it first focuses the main window, then I have to separately focus the pop-up dialogue. Or, if I first opened the pop-up dialogue window, it only focuses that window. Once the dialogue is closed, I then have to go focus the main window.

Most window managers “group” separate windows of the same application together. I’m not sure if there is a catch-all setting to enable this for hyprland. If not, would it be possible to make window rules for this, where windows owned by the same process are always brought into and out of focus together? Or, even better, be considered the same window such that they’re locked together? This is important to me because I use my mouse-centric applications in floating mode, and for those applications, I am trying to recreate the pieces that I liked of my old workflow from GNOME.

You could try playing with follow_mouse behavior. See: Variables – Hyprland Wiki

1 Like

@null Appreciate your reply. I’d also like this behavior to work with the kind of $mod+tab behavior I have set up for switching windows as well as notifications I may click on. As in, if I bring a window to the foreground for any reason, I want it to bring all the dialogues it spawned with it and vice-versa. I believe pure floating WMs behave this way (GNOME definitely does, and even Windows), and I’d like to replicate that behavior for floating windows in Hyprland.