aboutsummaryrefslogtreecommitdiff
path: root/src/window/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window/window.c')
-rw-r--r--src/window/window.c10
1 files changed, 5 insertions, 5 deletions
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;