aboutsummaryrefslogtreecommitdiff
path: root/src/window/window.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-21 19:51:25 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-21 19:51:25 +0100
commitc613fed749cff8fee16ea3906a5f39d1fe8dc20e (patch)
treee626d59a4ee5e2968d639109ecebf77113b1e1f5 /src/window/window.c
parent2580087ef23fe21ae4dbed45fb8cfa14fbfd7b9f (diff)
m
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;