diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-20 15:21:42 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-20 15:21:42 -0700 |
commit | 8be142845b48028ce2ddd7e59fdef39f67fb5b6a (patch) | |
tree | f44b9447e269e878f29b0c0f55c3793017829718 /070display.cc | |
parent | 6aa426288ba52f58537c28c755dcf26b1419b36f (diff) | |
download | mu-8be142845b48028ce2ddd7e59fdef39f67fb5b6a.tar.gz |
2042
Mouse clicks towards the right of very wide windows weren't working. Turns out to be a limitation of the X10 protocol: https://github.com/nsf/termbox-go/issues/32
Diffstat (limited to '070display.cc')
-rw-r--r-- | 070display.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/070display.cc b/070display.cc index b32af983..c8474900 100644 --- a/070display.cc +++ b/070display.cc @@ -18,6 +18,13 @@ Recipe_ordinal["open-console"] = OPEN_CONSOLE; case OPEN_CONSOLE: { tb_init(); Display_row = Display_column = 0; + long long int width = tb_width(); + long long int height = tb_height(); + if (width > 222 || height > 222) tb_shutdown(); + if (width > 222) + raise << "sorry, mu doesn't support windows wider than 222 characters. Please resize your window.\n" << end(); + if (height > 222) + raise << "sorry, mu doesn't support windows taller than 222 characters. Please resize your window.\n" << end(); break; } |