window: support extended urxvt mouse support if applicable

This commit is contained in:
Andrzej Rybczak
2015-05-08 18:49:40 +02:00
parent 9272a0034c
commit 173d23dde6
4 changed files with 254 additions and 181 deletions

View File

@@ -109,7 +109,7 @@ int main(int argc, char **argv)
sigignore(SIGINT);
# endif // !WIN32
NC::initScreen(Config.colors_enabled);
NC::initScreen(Config.colors_enabled, Config.mouse_support);
Actions::OriginalStatusbarVisibility = Config.statusbar_visibility;
@@ -152,13 +152,6 @@ int main(int argc, char **argv)
auto connect_attempt = boost::posix_time::from_time_t(0);
auto past = boost::posix_time::from_time_t(0);
// enable mouse
# if NCURSES_SEQUENCE_ESCAPING
mouseinterval(0);
# endif // NCURSES_SEQUENCE_ESCAPING
if (Config.mouse_support)
mousemask(ALL_MOUSE_EVENTS, nullptr);
while (!Actions::ExitMainLoop)
{
try