Fix #107789: Prevent area maximizing when dragging #107803

Merged
YimingWu merged 3 commits from ChengduLittleA/blender:drag_prevent_maximize into main 2023-06-07 06:21:08 +02:00

3 Commits

Author SHA1 Message Date
YimingWu 2904f4e02e Cleanups 2023-06-07 11:53:11 +08:00
YimingWu 3098ea9b70 Use BLI_listbase_is_empty 2023-06-07 11:51:35 +08:00
YimingWu 1be0e5825b Fix #107789: Prevent area maximizing when dragging
Calling screen maximize while dragging could lead to UI layout change
which affects context, this lead to crashes in the icon drawing and
selection code. This patch prevents maximize operator from running if
dragging is in progress.

Might need to look into why `drag->imb->rect` is None immediately after
calling maximize, we might want it to work since it's sometimes
more convenient to drag then put into a big recieving box. But since
`wmDropBox` is predetermined, this can be a somewhat problematic.
2023-06-07 11:51:35 +08:00