aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland.hpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-07-24 11:42:54 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitf0e3d51ee7adb54cd31f0625a71c86995cf0760f (patch)
tree5db9b7cb310b35e60ef81611463aeb67c257b80a /src/wayland.hpp
parent9ce5644a2350f8acbf606b2ee1073727578111ee (diff)
wayland: add display::add_global_handler which forwards to registry
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.hpp')
-rw-r--r--src/wayland.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wayland.hpp b/src/wayland.hpp
index 3b81e15..e2a1259 100644
--- a/src/wayland.hpp
+++ b/src/wayland.hpp
@@ -76,6 +76,11 @@ struct display {
void flush();
int get_fd() const;
int get_error();
+
+ // Lets just proxy this for the registry
+ inline void add_global_handler(char const *iface, registry::binder bind) {
+ this->r.add_global_handler(iface, bind);
+ }
};
// _ _