Skip to content

Commit

Permalink
Windows: repaint entire Overlay Frame instead of only root pane
Browse files Browse the repository at this point in the history
Commonalize repainting of the Overlay with how the OSK is repainted (see
previous commit)
  • Loading branch information
bwRavencl committed Sep 29, 2024
1 parent afe273c commit 998d196
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2425,9 +2425,8 @@ private void repaintOnScreenKeyboardAndOverlay() {
}

if (isWindows && overlayFrame != null) {
final var overlayFrameContentPane = overlayFrame.getContentPane();
overlayFrameContentPane.validate();
overlayFrameContentPane.repaint();
overlayFrame.validate();
overlayFrame.repaint();
}
}

Expand Down

0 comments on commit 998d196

Please sign in to comment.