# HG changeset patch # User Sadrul Habib Chowdhury # Date 1156359046 0 # Node ID 8b8188fa98f4676926d1244fd4ccef0147596975 # Parent 8a2b571f999096c0fb3fed38cf40679d92bde6da [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. committer: Tailor Script diff -r 8a2b571f9990 -r 8b8188fa98f4 console/libgnt/gntmain.c --- 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);