If a border width in pts is non-zero have it result in a minimum 1px border

Change the default to 0.5pt instead of 1px
This commit is contained in:
Kovid Goyal
2020-08-30 15:26:37 +05:30
parent 3d60724651
commit 430eaefc3e
3 changed files with 3 additions and 3 deletions

View File

@@ -332,7 +332,7 @@ class Window:
def effective_border(self) -> int:
val, unit = self.opts.window_border_width
if unit == 'pt':
val = pt_to_px(val, self.os_window_id)
val = max(1 if val > 0 else 0, pt_to_px(val, self.os_window_id))
else:
val = round(val)
return int(val)