From a6fa4cc253202abe81d9db4dff4f886b5e3d95b0 Mon Sep 17 00:00:00 2001 From: night_xiaoye <2260737534@qq.com> Date: Tue, 25 Aug 2020 12:00:11 +0800 Subject: [PATCH] window: android window splits from anbox window. click 42px height of anbox window exactly will explit android window from anbox window, solve it. --- src/anbox/platform/sdl/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anbox/platform/sdl/window.cpp b/src/anbox/platform/sdl/window.cpp index b3b14f75..3eac96bb 100755 --- a/src/anbox/platform/sdl/window.cpp +++ b/src/anbox/platform/sdl/window.cpp @@ -175,7 +175,7 @@ SDL_HitTestResult Window::on_window_hit(SDL_Window *window, const SDL_Point *pt, SDL_HitTestResult result = SDL_HITTEST_NORMAL; - if (pt->y < top_drag_area_height) { + if (pt->y <= top_drag_area_height) { if (!platform_window->initialized.load()) { INFO("window initialized by click top"); platform_window->initialized = true; -- GitLab