Skip to content

Commit 37e2dcc

Browse files
committed
For #66: made it cleaner (it is better to initialize the table that
detects stacked windows in beginG() rather than at the end of endG())
1 parent 95f3d79 commit 37e2dcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/main_window.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function graphite_main_window.begin_G()
168168
graphite_main_window.m = m
169169
graphite_main_window.gx = 0.5 * w * m
170170
graphite_main_window.gy = 0.5 * h * m
171+
graphite_main_window.rects = {}
171172
end
172173

173174
-- Accumulates center of gravity for current window
@@ -197,7 +198,6 @@ function graphite_main_window.end_G()
197198
main.render_area.set_center_from_imgui_coords(
198199
graphite_main_window.gx, graphite_main_window.gy
199200
)
200-
graphite_main_window.rects = {}
201201
end
202202

203203

0 commit comments

Comments
 (0)