From 998d1963ae7920df66f2cdececbcc2e7d4d22dd8 Mon Sep 17 00:00:00 2001 From: Matteo Hausner Date: Sun, 29 Sep 2024 19:50:16 +0200 Subject: [PATCH] Windows: repaint entire Overlay Frame instead of only root pane Commonalize repainting of the Overlay with how the OSK is repainted (see previous commit) --- src/main/java/de/bwravencl/controllerbuddy/gui/Main.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java b/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java index df683817..131b8674 100644 --- a/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java +++ b/src/main/java/de/bwravencl/controllerbuddy/gui/Main.java @@ -2425,9 +2425,8 @@ private void repaintOnScreenKeyboardAndOverlay() { } if (isWindows && overlayFrame != null) { - final var overlayFrameContentPane = overlayFrame.getContentPane(); - overlayFrameContentPane.validate(); - overlayFrameContentPane.repaint(); + overlayFrame.validate(); + overlayFrame.repaint(); } }