Browse Source

Use Native.getWindowID instead of Native.getComponentID.

pull/187/head
weisj 5 years ago
parent
commit
cbf57eb86e
  1. 2
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/PointerUtil.java

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

Loading…
Cancel
Save