diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-08 01:31:16 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-08 01:31:22 +0100 |
| commit | 5e7925eaeba474cfc283e26b7aa3426ec97424f7 (patch) | |
| tree | b8cca3a9dc57c52dffc3acbe58dc3f86fe54b15a /src/protocols/ForeignToplevelWlr.cpp | |
| parent | 57a12476deef1b3e9967896cd8b3676131193865 (diff) | |
foreign-toplevel: bypass no activate focus checks
ref #5939
those are used by focus switchers so they should bypass stuff like focus_on_activate = false
Diffstat (limited to 'src/protocols/ForeignToplevelWlr.cpp')
| -rw-r--r-- | src/protocols/ForeignToplevelWlr.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/protocols/ForeignToplevelWlr.cpp b/src/protocols/ForeignToplevelWlr.cpp index 38d7a38d..1762ad2a 100644 --- a/src/protocols/ForeignToplevelWlr.cpp +++ b/src/protocols/ForeignToplevelWlr.cpp @@ -17,10 +17,9 @@ CForeignToplevelHandleWlr::CForeignToplevelHandleWlr(SP<CZwlrForeignToplevelHand if (!PWINDOW) return; - if (PWINDOW->m_eSuppressedEvents & SUPPRESS_ACTIVATE) - return; - - PWINDOW->activate(); + // these requests bypass the config'd stuff cuz it's usually like + // window switchers and shit + PWINDOW->activate(true); }); resource->setSetFullscreen([this](CZwlrForeignToplevelHandleV1* p, wl_resource* output) { |
