fix opengl wayland flicklering
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-05-05 19:04:19 -07:00
commit 801c5e03d4
3 changed files with 6 additions and 6 deletions

View file

@ -783,7 +783,11 @@ static void keyboard_key(void* data,
if(key != -1) {
if(state == WL_KEYBOARD_KEY_STATE_PRESSED) {
MwLLDispatch(self, key, &key);
MwLL topmost_parent = self;
while(topmost_parent->wayland.parent) {
MwLLDispatch(topmost_parent, key, &key);
topmost_parent = topmost_parent->wayland.parent;
}
} else {
MwLLDispatch(self, key_released, &key);
}