aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-07-23 17:33:24 +0200
committerBoris Faure <billiob@gmail.com>2017-07-23 17:33:24 +0200
commit0844d8689279cb1298bdbf643b5c64a8f2aad965 (patch)
tree5aa0a8e8f192bda5a65a2f4ba54b3c9c9e7a2848
parentfont: update all terms to this window when changing font (size) (diff)
downloadterminology-0844d8689279cb1298bdbf643b5c64a8f2aad965.tar.gz
sizing: use 1px step when having visible tabs.
-rw-r--r--src/bin/win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 476f9c4..67ed42a 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2280,12 +2280,20 @@ _tabs_size_eval(Term_Container *container, Sizeinfo *info)
{
Tabs *tabs;
Term_Container *tc;
+ Config *config;
assert (container->type == TERM_CONTAINER_TYPE_TABS);
tabs = (Tabs*)container;
tc = tabs->current->tc;
+ config = tc->wn->config;
tc->size_eval(tc, info);
+ /* Current sizing code does not take the tab area correctly into account */
+ if (!config->notabs)
+ {
+ info->step_x = 1;
+ info->step_y = 1;
+ }
}
static Eina_List *