JBR-1976 [jcef] need mouse-transparent window on Windows

(cherry picked from commit b60fac96b4)
This commit is contained in:
Anton Tarasov
2019-11-25 12:08:51 +03:00
committed by alexey.ushakov@jetbrains.com
parent 223e41508f
commit e741a4dd77

View File

@@ -1103,6 +1103,9 @@ AwtWindow* AwtWindow::Create(jobject self, jobject parent)
if (env->ExceptionCheck()) goto done;
DWORD style = WS_CLIPCHILDREN | WS_POPUP;
DWORD exStyle = WS_EX_NOACTIVATE;
if (JNU_CallMethodByName(env, NULL, target, "isIgnoreMouseEvents", "()Z").z) {
exStyle |= WS_EX_LAYERED | WS_EX_TRANSPARENT;
}
if (GetRTL()) {
exStyle |= WS_EX_RIGHT | WS_EX_LEFTSCROLLBAR;
if (GetRTLReadingOrder())