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); } }