From c613fed749cff8fee16ea3906a5f39d1fe8dc20e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Jan 2025 19:51:25 +0100 Subject: m --- src/window/window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/window') diff --git a/src/window/window.c b/src/window/window.c index 9bf6917..a70e0d9 100644 --- a/src/window/window.c +++ b/src/window/window.c @@ -1566,17 +1566,17 @@ static void mgl_window_on_receive_event(mgl_window *self, XEvent *xev, mgl_event } case MappingNotify: { XRefreshKeyboardMapping(&xev->xmapping); - event->type = MGL_EVENT_MAPPING_NOTIFY; - event->mapping_notify.notify_type = MappingModifier; + event->type = MGL_EVENT_MAPPING_CHANGED; + event->mapping_changed.type = MappingModifier; switch(xev->xmapping.request) { case MappingModifier: - event->mapping_notify.notify_type = MGL_MAPPING_NOTIFY_MODIFIER; + event->mapping_changed.type = MGL_MAPPING_CHANGED_MODIFIER; break; case MappingKeyboard: - event->mapping_notify.notify_type = MGL_MAPPING_NOTIFY_KEYBOARD; + event->mapping_changed.type = MGL_MAPPING_CHANGED_KEYBOARD; break; case MappingPointer: - event->mapping_notify.notify_type = MGL_MAPPING_NOTIFY_POINTER; + event->mapping_changed.type = MGL_MAPPING_CHANGED_POINTER; break; } break; -- cgit v1.2.3