[autocomplete] 67/143: AutoComplete: Only check default screen configuration when determining screen bounds for popup windows. Helps with some monitor/system setups, greatly improving display time of first completion popup. Thanks to Manuel Krug!

Benjamin Mesing ben at alioth.debian.org
Sat Oct 19 12:53:19 UTC 2013


This is an automated email from the git hooks/post-receive script.

ben pushed a commit to branch master
in repository autocomplete.

commit acb102b32a7a872d65bb6e190001b45148f436f5
Author: bobbylight <robert at fifesoft.com>
Date:   Tue Mar 22 03:27:07 2011 +0000

    AutoComplete: Only check default screen configuration when determining screen bounds for popup windows.  Helps with some monitor/system setups, greatly improving display time of first completion popup.  Thanks to Manuel Krug!
---
 src/org/fife/ui/autocomplete/Util.java |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/org/fife/ui/autocomplete/Util.java b/src/org/fife/ui/autocomplete/Util.java
index 2f17cb1..209857f 100644
--- a/src/org/fife/ui/autocomplete/Util.java
+++ b/src/org/fife/ui/autocomplete/Util.java
@@ -168,12 +168,10 @@ public class Util {
 										getLocalGraphicsEnvironment();
 		GraphicsDevice[] devices = env.getScreenDevices();
 		for (int i=0; i<devices.length; i++) {
-			GraphicsConfiguration[] configs = devices[i].getConfigurations();
-			for (int j=0; j<configs.length; j++) {
-				Rectangle gcBounds = configs[j].getBounds();
-				if (gcBounds.contains(x, y)) {
-					return gcBounds;
-				}
+			GraphicsConfiguration config = devices[i].getDefaultConfiguration();
+			Rectangle gcBounds = config.getBounds();
+			if (gcBounds.contains(x, y)) {
+				return gcBounds;
 			}
 		}
 		// If point is outside all monitors, default to default monitor (?)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/autocomplete.git



More information about the pkg-java-commits mailing list