changeset 14627:134f4d999ff0

[gaim-migrate @ 17361] Fix the highlighting for move/resize of windows when shadows are turned on. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 26 Sep 2006 20:07:02 +0000
parents d1935057d82c
children 58202142e9ad
files console/libgnt/gntmain.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/console/libgnt/gntmain.c	Tue Sep 26 18:54:12 2006 +0000
+++ b/console/libgnt/gntmain.c	Tue Sep 26 20:07:02 2006 +0000
@@ -744,6 +744,11 @@
 	d = win->window;
 	gnt_widget_get_size(win, &w, &h);
 
+	if (gnt_widget_has_shadow(win)) {
+		--w;
+		--h;
+	}
+
 	/* the top and bottom */
 	for (i = 0; i < w; i += reverse_char(d, 0, i, set));
 	for (i = 0; i < w; i += reverse_char(d, h-1, i, set));