summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-cmd.cc
diff options
context:
space:
mode:
authorChris West <therealchriswest@hotmail.com>2012-12-29 16:17:48 +0000
committerChris West <therealchriswest@hotmail.com>2013-01-05 16:25:23 +0000
commit10e7a704c28f35be409b468c5881b81ed1c452a8 (patch)
tree0bba7a6daaee7fe3a23ed741bdc8e575c5e34962 /crawl-ref/source/tilereg-cmd.cc
parentd11e3248a35dcfb6ad16f5dc28db7a0b8ad0c8d5 (diff)
downloadcrawl-ref-10e7a704c28f35be409b468c5881b81ed1c452a8.tar.gz
crawl-ref-10e7a704c28f35be409b468c5881b81ed1c452a8.zip
merge of small-screen changes from old build env
Diffstat (limited to 'crawl-ref/source/tilereg-cmd.cc')
-rw-r--r--crawl-ref/source/tilereg-cmd.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-cmd.cc b/crawl-ref/source/tilereg-cmd.cc
index 353c6c9a22..fe681c483e 100644
--- a/crawl-ref/source/tilereg-cmd.cc
+++ b/crawl-ref/source/tilereg-cmd.cc
@@ -67,6 +67,12 @@ int CommandRegion::handle_mouse(MouseEvent &event)
const command_type cmd = (command_type) m_items[item_idx].idx;
m_last_clicked_item = item_idx;
+ if (tiles.is_using_small_layout())
+ {
+ // close the tab that we've just successfully used a command from
+ tiles.deactivate_tab();
+ }
+
// this is a really horrid way to preserve the interface in viewmap.cc
// which expects a keypress rather than a command :(
if (tiles.get_map_display())