From 7ac5d5935c971d3dcc7877491f529feb03b469e4 Mon Sep 17 00:00:00 2001 From: XrioBtw <33559295+XrioBtw@users.noreply.github.com> Date: Sun, 17 Dec 2017 03:29:20 +0100 Subject: [PATCH] Fix tooltips rendering behind the game Fixes #257 --- .../src/main/java/net/runelite/client/RuneLite.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runelite-client/src/main/java/net/runelite/client/RuneLite.java b/runelite-client/src/main/java/net/runelite/client/RuneLite.java index 9db3d54cec..646d96d289 100644 --- a/runelite-client/src/main/java/net/runelite/client/RuneLite.java +++ b/runelite-client/src/main/java/net/runelite/client/RuneLite.java @@ -50,6 +50,7 @@ import javax.inject.Singleton; import javax.swing.JFrame; import javax.swing.JPopupMenu; import javax.swing.SwingUtilities; +import javax.swing.ToolTipManager; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import joptsimple.OptionParser; @@ -133,6 +134,12 @@ public class RuneLite public static void main(String[] args) throws Exception { + // Force heavy-weight popups/tooltips. + // Prevents them from being obscured by the game applet. + ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false); + // Do not render shadows under popups/tooltips. + // Fixes black boxes under popups that are above the game applet. + System.setProperty("jgoodies.popupDropShadowEnabled", "false"); // Do not fill in background on repaint. Reduces flickering when // the applet is resized. System.setProperty("sun.awt.noerasebackground", "true");