提交 9f5d5238 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!103 window: split app window from anbox

Merge pull request !103 from Night/master
......@@ -313,17 +313,24 @@ void Platform::process_input_event(const SDL_Event &event) {
std::int32_t x = 0;
std::int32_t y = 0;
bool bFind = false;
switch (event.type) {
// Mouse
case SDL_MOUSEBUTTONDOWN:
for (auto &iter : windows_) {
if (auto w = iter.second.lock()) {
if (w->window_id() == event.window.windowID &&
w->title_event_filter(event.button.x, event.button.y)) {
return;
if (w->window_id() == event.window.windowID) {
if (w->title_event_filter(event.button.x, event.button.y)) {
return;
}
bFind = true;
break;
}
}
}
if (!bFind) {
return;
}
if (config_.no_touch_emulation) {
mouse_events.push_back({EV_KEY, BTN_LEFT, 1});
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册