push events to window on top of screen when no focused window

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 96f5621bc5
commit a33daa6c2e
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -56,6 +56,9 @@ extern "C" void keyboardDriverRead(lv_indev_drv_t *drv, lv_indev_data_t *data)
auto focusWindow = Window::getFocus();
if (focusWindow) {
focusWindow->onEvent(evt);
} else {
auto w = Layer::back();
if (w) w->onEvent(evt);
}
}
}