aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-27 19:35:17 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-27 19:35:17 +0100
commit4dbee5ac57c10819ff8d06560be573ad3a3e4e05 (patch)
tree3f5d1b9dd80d421983e9136cc1e7774a9610a961 /src/window
parent69ac49e5b7c73117ab1c72a268096b5d36adc6da (diff)
Add Window::inject_x11_event
Diffstat (limited to 'src/window')
-rw-r--r--src/window/Window.cpp4
1 files changed, 4 insertions, 0 deletions
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});
}