From cbf57eb86e778b90cd3137720b49e3ccc8867dd6 Mon Sep 17 00:00:00 2001 From: weisj Date: Wed, 1 Jul 2020 22:55:42 +0200 Subject: [PATCH] Use Native.getWindowID instead of Native.getComponentID. --- .../com/github/weisj/darklaf/platform/windows/PointerUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java index ac55ad2d..dfc4a564 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java +++ b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java @@ -41,6 +41,6 @@ public class PointerUtil { public static long getHWND(final Component component) { Window window = component instanceof Window ? (Window) component : SwingUtilities.getWindowAncestor(component); - return Native.getComponentID(window); + return Native.getWindowID(window); } }