[gaim-migrate @ 17007]

Wed, 23 Aug 2006 18:50:46 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Wed, 23 Aug 2006 18:50:46 +0000
changeset 14376
43b7dc7d2a52
parent 14375
211ffa52d28b
child 14377
c0440e16bacd

[gaim-migrate @ 17007]
This is a temporary change, allowing people with slightly older versions of ncurses
to build. I plan to evetually add mouse support for older versions.

console/libgnt/gntmain.c file | annotate | diff | comparison | revisions
--- a/console/libgnt/gntmain.c	Wed Aug 23 16:36:58 2006 +0000
+++ b/console/libgnt/gntmain.c	Wed Aug 23 18:50:46 2006 +0000
@@ -560,7 +560,7 @@
 		offset = 0;
 	} else
 		return FALSE;
-	return TRUE;
+	return FALSE; /* XXX: this should be TRUE */
 }
 
 static gboolean
@@ -885,8 +885,10 @@
 	wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL));
 	refresh();
 
+#ifdef NCURSES_BUTTON_PRESSEDaa
 	if ((mouse_enabled = gnt_style_get_bool(GNT_STYLE_MOUSE, FALSE)))
-		mousemask(NCURSES_BUTTON_PRESSED | NCURSES_BUTTON_RELEASED , NULL);
+		mousemask(NCURSES_BUTTON_PRESSED | NCURSES_BUTTON_RELEASED | REPORT_MOUSE_POSITION, NULL);
+#endif
 
 	wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL));
 	werase(stdscr);

mercurial