Browse Source

Fixed left most titlebar button not being deselected when moving mouse over drag area.

pull/154/head
weisj 5 years ago
parent
commit
3b4e17e4cb
  1. 6
      windows/src/main/cpp/Decorations.cpp
  2. 1
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

6
windows/src/main/cpp/Decorations.cpp

@ -234,9 +234,9 @@ Java_com_github_weisj_darklaf_platform_windows_JNIDecorationsWindows_setBackgrou
void ExtendClientFrame(HWND handle)
{
MARGINS margins = { 1,
1,
1,
MARGINS margins = { 0,
0,
0,
1 };
DwmExtendFrameIntoClientArea(handle, &margins);
}

1
windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

@ -748,6 +748,7 @@ public class WindowsTitlePane extends CustomTitlePane {
right = tmp;
}
right++; // Make sure mouse exit event is produced for left most button.
JNIDecorationsWindows.updateValues(windowHandle,
Scale.scaleWidth(left),
Scale.scaleWidth(right),

Loading…
Cancel
Save