mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 07:55:10 +02:00
Use the new region function everywhere
Centralizes window layout calculation and no longer assumes tab bar geometry
This commit is contained in:
@@ -148,7 +148,7 @@ class Window:
|
||||
wakeup()
|
||||
|
||||
def update_position(self, window_geometry):
|
||||
vw, vh, ah, cw, ch = viewport_for_window(self.os_window_id)
|
||||
central, tab_bar, vw, vh, cw, ch = viewport_for_window(self.os_window_id)
|
||||
self.screen_geometry = sg = calculate_gl_geometry(window_geometry, vw, vh, cw, ch)
|
||||
return sg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user