Skip to content

Commit 1d2f467

Browse files
author
Kazuhisa Takakuri
committed
8189687: Swing: Invalid position of candidate pop-up of InputMethod in Hi-DPI on Windows
Reviewed-by: phh Backport-of: 489e5ae3349370825b7faa1d7514796a2b1ac1c7
1 parent 41f479c commit 1d2f467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdk/src/windows/native/sun/windows/awt_Component.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -3840,7 +3840,7 @@ void AwtComponent::OpenCandidateWindow(int x, int y)
38403840
{
38413841
UINT bits = 1;
38423842
POINT p = {0, 0}; // upper left corner of the client area
3843-
HWND hWnd = GetHWnd();
3843+
HWND hWnd = ImmGetHWnd();
38443844
if (!::IsWindowVisible(hWnd)) {
38453845
return;
38463846
}

0 commit comments

Comments
 (0)