Use the new region function everywhere

Centralizes window layout calculation and no longer assumes
tab bar geometry
This commit is contained in:
Kovid Goyal
2018-01-19 15:56:07 +05:30
parent b6188bf436
commit 4f12c91fff
5 changed files with 83 additions and 55 deletions

View File

@@ -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