summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-27 23:14:56 +0000
committerVaxry <vaxry@vaxry.net>2024-02-27 23:15:24 +0000
commite3373669e5544c3f18cf1edcd8fcfff9c6222f5c (patch)
tree4b248f96e35919dad78e06bba255fdf107f1356e /src/helpers
parentf26d7aa58d78e764871ff026fb78f4322f0a6879 (diff)
wayland: implement keyboard_shortcuts_inhibit_v1
fixes #4568
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/WLClasses.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index 8cfee18a..02681f48 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -412,3 +412,13 @@ struct STearingController {
return pWlrHint == other.pWlrHint;
}
};
+
+struct SShortcutInhibitor {
+ wlr_keyboard_shortcuts_inhibitor_v1* pWlrInhibitor = nullptr;
+
+ DYNLISTENER(destroy);
+
+ bool operator==(const SShortcutInhibitor& other) {
+ return pWlrInhibitor == other.pWlrInhibitor;
+ }
+};