Fix handling of ZED_WINDOW_{SIZE,POSITION} env vars
Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
48b76f96fc
commit
927f7b3363
3 changed files with 67 additions and 55 deletions
|
@ -31,7 +31,7 @@ scale_factor=1
|
|||
if [[ $resolution_line =~ Retina ]]; then scale_factor=2; fi
|
||||
width=$(expr ${screen_size[0]} / 2 / $scale_factor)
|
||||
height=${screen_size[1] / $scale_factor}
|
||||
y=$(expr $height / 2)
|
||||
y=0
|
||||
|
||||
position_1=0,${y}
|
||||
position_2=${width},${y}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue