From 4dbee5ac57c10819ff8d06560be573ad3a3e4e05 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 27 Nov 2024 19:35:17 +0100 Subject: Add Window::inject_x11_event --- src/window/Window.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/window/Window.cpp') diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 8cfc28e..615b1a9 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -40,6 +40,10 @@ namespace mgl { return mgl_window_poll_event(&window, (mgl_event*)&event); } + bool Window::inject_x11_event(XEvent *xev, Event &event) { + return mgl_window_inject_x11_event(&window, xev, (mgl_event*)&event); + } + void Window::clear(Color color) { mgl_window_clear(&window, mgl_color{color.r, color.g, color.b, color.a}); } -- cgit v1.2.3