Hyprland/src/events
Kajetan Puchalski efee6a1cda
swallow: Add swallow_exception_regex (#2026)
Currently, if a window class is specified in the swallow_regex (e.g.
Kitty) it will swallow every other window spawned by it automatically.
Many other WMs implementing this functionality allow for defining
exceptions from this rule. For instance, we want Kitty to swallow sxiv
or zathura but we do not want Kitty to swallow something like wev.

This commit adds an additional regex - swallow_exception_regex where
these exceptions can be defined. This regex is then compared against the
title of the window about to be swallowed and if it happens to be a
match, aborts the swallowing.

This works because whenever an application that could be swallowed is
launched by a terminal, the class of the terminal remains the same while
the title changes to whatever the application's name is, thus letting it
be matched against a regex.
2023-04-12 13:38:15 +01:00
..
Devices.cpp fix warn 2023-02-28 19:37:00 +00:00
Events.hpp output: handle needs_frame 2023-04-07 17:25:56 +01:00
Layers.cpp internal: release buttons on unmap 2023-04-07 12:54:11 +01:00
Misc.cpp Input: fix always_follow_on_dnd 2023-03-30 00:34:24 +01:00
Monitors.cpp output: handle needs_frame 2023-04-07 17:25:56 +01:00
Popups.cpp internal: release buttons on unmap 2023-04-07 12:54:11 +01:00
Windows.cpp swallow: Add swallow_exception_regex (#2026) 2023-04-12 13:38:15 +01:00