diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-04-21 14:48:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-21 20:48:27 +0200 |
| commit | 55e953b383f6b658b20ede1fea7772d2a88e7c65 (patch) | |
| tree | 2bf654ddde9f869ee209f168607b6724dd7171ac /src/desktop/Window.hpp | |
| parent | d29723cb76479a860bf9d07d47c5a14b4d64dbc0 (diff) | |
InputManager: add nofollowmouse (#9994)
* InputManager: add nofollowmouse
with this, focus_follows_mouse=1 acts like focus_follows_mouse=2 on the specific windows defined by the user
* e
* e
biggest e of all time
Diffstat (limited to 'src/desktop/Window.hpp')
| -rw-r--r-- | src/desktop/Window.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp index f592aed6..2d99016d 100644 --- a/src/desktop/Window.hpp +++ b/src/desktop/Window.hpp @@ -104,6 +104,7 @@ struct SWindowData { CWindowOverridableVar<bool> tearing = false; CWindowOverridableVar<bool> xray = false; CWindowOverridableVar<bool> renderUnfocused = false; + CWindowOverridableVar<bool> noFollowMouse = false; CWindowOverridableVar<Hyprlang::INT> borderSize = {std::string("general:border_size"), Hyprlang::INT(0), std::nullopt}; CWindowOverridableVar<Hyprlang::INT> rounding = {std::string("decoration:rounding"), Hyprlang::INT(0), std::nullopt}; @@ -484,6 +485,7 @@ namespace NWindowProperties { {"syncfullscreen", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.syncFullscreen; }}, {"immediate", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.tearing; }}, {"xray", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.xray; }}, + {"nofollowmouse", [](const PHLWINDOW& pWindow) { return &pWindow->m_sWindowData.noFollowMouse; }}, }; const std::unordered_map<std::string, std::function<CWindowOverridableVar<Hyprlang::INT>*(const PHLWINDOW&)>> intWindowProperties = { |
