From 3121d0b9b553ddc709be8b67e91395a796cc6b6e Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Thu, 22 Jun 2017 14:19:36 +0200 Subject: main/wayland: added a simple main loop Signed-off-by: Marcus Fritzsch --- src/wayland.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wayland.cpp') diff --git a/src/wayland.cpp b/src/wayland.cpp index b4f4800..b81f140 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -32,6 +32,10 @@ void display::roundtrip() { wl_display_roundtrip(this->d.get()); } int display::dispatch() { return wl_display_dispatch(this->d.get()); } +void display::flush() { wl_display_flush(this->d.get()); } + +int display::get_fd() const { return wl_display_get_fd(this->d.get()); } + // _ _ // _ __ ___ __ _(_)___| |_ _ __ _ _ // | '__/ _ \/ _` | / __| __| '__| | | | -- cgit 1.2.3-korg