Skip to content

Commit

Permalink
8189687: Swing: Invalid position of candidate pop-up of InputMethod i…
Browse files Browse the repository at this point in the history
…n Hi-DPI on Windows

Reviewed-by: phh
Backport-of: 489e5ae3349370825b7faa1d7514796a2b1ac1c7
  • Loading branch information
Kazuhisa Takakuri committed Nov 5, 2024
1 parent 41f479c commit 1d2f467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdk/src/windows/native/sun/windows/awt_Component.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -3840,7 +3840,7 @@ void AwtComponent::OpenCandidateWindow(int x, int y)
{
UINT bits = 1;
POINT p = {0, 0}; // upper left corner of the client area
HWND hWnd = GetHWnd();
HWND hWnd = ImmGetHWnd();
if (!::IsWindowVisible(hWnd)) {
return;
}
Expand Down

0 comments on commit 1d2f467

Please sign in to comment.