We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8550497 commit 4a85cddCopy full SHA for 4a85cdd
src/wlr_layout_ui/utils.py
@@ -107,8 +107,10 @@ def compute_bounding_box(rects):
107
108
109
def trim_rects_flip_y(rects):
110
- min_x = min([r.x for r in rects])
111
- max_y = max([r.y + r.height for r in rects])
+ min_x = min([r.x for r in rects if r])
+ max_y = max([r.y + r.height for r in rects if r])
112
for rect in rects:
113
+ if rect is None:
114
+ continue
115
rect.x = rect.x - min_x
116
rect.y = max_y - (rect.y + rect.height)
0 commit comments