summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-04-23 15:59:03 -0400
committerNeil Moore <neil@s-z.org>2012-04-23 15:59:03 -0400
commit502efc8e3f683e52723653b96d187eb81b3a2076 (patch)
tree9119f850b18309ad60bb853261dea8b7b618e6fd /crawl-ref/source/libunix.cc
parent3329f2d146a45125a551b24c99e88a659ec486eb (diff)
downloadcrawl-ref-502efc8e3f683e52723653b96d187eb81b3a2076.tar.gz
crawl-ref-502efc8e3f683e52723653b96d187eb81b3a2076.zip
Ignore ncurses KEY_RESIZE.
We already handle the SIGWINCH elsewhere. This prevents an "Unknown command" message every time the terminal size changes.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 768d08e833..34735f02ba 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -273,8 +273,9 @@ int m_getch()
c = proc_mouse_event(c, &me);
}
#endif
- } while ((c == CK_MOUSE_MOVE || c == CK_MOUSE_CLICK)
- && !crawl_state.mouse_enabled);
+ } while (c == -KEY_RESIZE
+ || ((c == CK_MOUSE_MOVE || c == CK_MOUSE_CLICK)
+ && !crawl_state.mouse_enabled));
return (c);
}