This commit is contained in:
Kovid Goyal 2020-08-03 22:14:13 +05:30
parent 6b421fabd1
commit 868546abe4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Wayland: Fix a typo in the previous release that broke reading mouse cursor size (:iss:`2895`) - Wayland: Fix a typo in the previous release that broke reading mouse cursor size (:iss:`2895`)
- Fix a regression in the previous release that could cause an exception during
startup in rare circumstances (:iss:`2896`)
0.18.2 [2020-07-28] 0.18.2 [2020-07-28]
-------------------- --------------------

View File

@ -380,7 +380,6 @@ class Window:
if self.destroyed: if self.destroyed:
return return
if self.needs_layout or new_geometry.xnum != self.screen.columns or new_geometry.ynum != self.screen.lines: if self.needs_layout or new_geometry.xnum != self.screen.columns or new_geometry.ynum != self.screen.lines:
boss = get_boss()
self.screen.resize(new_geometry.ynum, new_geometry.xnum) self.screen.resize(new_geometry.ynum, new_geometry.xnum)
sg = self.update_position(new_geometry) sg = self.update_position(new_geometry)
self.needs_layout = False self.needs_layout = False
@ -391,7 +390,7 @@ class Window:
self.screen.lines, self.screen.columns, self.screen.lines, self.screen.columns,
max(0, new_geometry.right - new_geometry.left), max(0, new_geometry.bottom - new_geometry.top)) max(0, new_geometry.right - new_geometry.left), max(0, new_geometry.bottom - new_geometry.top))
if current_pty_size != self.last_reported_pty_size: if current_pty_size != self.last_reported_pty_size:
boss.child_monitor.resize_pty(self.id, *current_pty_size) get_boss().child_monitor.resize_pty(self.id, *current_pty_size)
if not self.pty_resized_once: if not self.pty_resized_once:
self.pty_resized_once = True self.pty_resized_once = True
self.child.mark_terminal_ready() self.child.mark_terminal_ready()