diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-08-01 16:00:01 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-08-01 16:00:01 +0200 |
commit | 271fd662a18d0a289fa73c1f42885a451accb1b8 (patch) | |
tree | 269f43afb5f345a4cb0bc290366aa96c17cbae45 /src/tabs | |
parent | ba93f3f236e68b14d84c9bc621c638c4f79207f9 (diff) | |
download | poezio-271fd662a18d0a289fa73c1f42885a451accb1b8.tar.gz poezio-271fd662a18d0a289fa73c1f42885a451accb1b8.tar.bz2 poezio-271fd662a18d0a289fa73c1f42885a451accb1b8.tar.xz poezio-271fd662a18d0a289fa73c1f42885a451accb1b8.zip |
Entirely remove the g_lock (used to avoid a few race conditions with ncures)
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/basetabs.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py index 4089f0da..9212278d 100644 --- a/src/tabs/basetabs.py +++ b/src/tabs/basetabs.py @@ -35,7 +35,6 @@ from decorators import refresh_wrapper from logger import logger from text_buffer import TextBuffer from theming import get_theme, dump_tuple -from windows import g_lock # getters for tab colors (lambdas, so that they are dynamic) @@ -187,9 +186,8 @@ class Tab(object): @staticmethod def resize(scr): - with g_lock: - Tab.height, Tab.width = scr.getmaxyx() - windows.Win._tab_win = scr + Tab.height, Tab.width = scr.getmaxyx() + windows.Win._tab_win = scr def missing_command_callback(self, command_name): """ |