[kaffe] CVS kaffe (riccardo): draw the focus border according to the focus manager

Kaffe CVS cvs-commits at kaffe.org
Sun Dec 3 02:30:47 PST 2006


PatchSet 7453 
Date: 2006/12/03 10:29:50
Author: riccardo
Branch: HEAD
Tag: (none) 
Log:
draw the focus border according to the focus manager

Members: 
	libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.20->1.21 

Index: kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java
diff -u kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.20 kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.21
--- kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java:1.20	Sun Nov 19 21:32:12 2006
+++ kaffe/libraries/javalib/awt-implementations/kaffe/java/awt/Component.java	Sun Dec  3 10:29:50 2006
@@ -2423,7 +2423,7 @@
 	int w = width - (left + right);
 	int h = height - (top + bottom);
 
-	if ( this == AWTEvent.keyTgt )
+	if ( hasFocus() )
 		g.setColor( Defaults.FocusClr);
 	else
 		g.setColor( Defaults.BorderClr);




More information about the kaffe mailing list