summaryrefslogtreecommitdiff
path: root/src/size_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/size_manager.py')
-rw-r--r--src/size_manager.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/size_manager.py b/src/size_manager.py
index 7e01d5d0..1cad83fd 100644
--- a/src/size_manager.py
+++ b/src/size_manager.py
@@ -3,8 +3,6 @@ Size Manager:
used to check size boundaries of the whole window and
specific tabs
"""
-from windows import g_lock
-
THRESHOLD_WIDTH_DEGRADE = 45
THRESHOLD_HEIGHT_DEGRADE = 10
@@ -27,26 +25,22 @@ class SizeManager(object):
@property
def tab_degrade_x(self):
- with g_lock:
- _, x = self.tab_scr.getmaxyx()
+ _, x = self.tab_scr.getmaxyx()
return x < THRESHOLD_WIDTH_DEGRADE
@property
def tab_degrade_y(self):
- with g_lock:
- y, x = self.tab_scr.getmaxyx()
+ y, x = self.tab_scr.getmaxyx()
return y < THRESHOLD_HEIGHT_DEGRADE
@property
def core_degrade_x(self):
- with g_lock:
- y, x = self.core_scr.getmaxyx()
+ y, x = self.core_scr.getmaxyx()
return x < FULL_WIDTH_DEGRADE
@property
def core_degrade_y(self):
- with g_lock:
- y, x = self.core_scr.getmaxyx()
+ y, x = self.core_scr.getmaxyx()
return y < FULL_HEIGHT_DEGRADE