Skip to content

Commit 0b5ea7b

Browse files
committed
Make the Reset button prioritize visible windows for positions
1 parent ef2b200 commit 0b5ea7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RuntimeUnityEditor.Core/Windows/Taskbar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ private void DrawTaskbar(int id)
9696
foreach (var window in _orderedFeatures.OfType<IWindow>())
9797
window.WindowRect = new Rect(-1000, -1000, 0, 0);
9898

99-
foreach (var window in _orderedFeatures.OfType<IWindow>().OrderBy(x => x.Title))
99+
foreach (var window in _orderedFeatures.OfType<IWindow>().OrderByDescending(x => x.Enabled).ThenBy(x => x.Title))
100100
{
101101
// Ensure that all title bars are visible
102102
GUI.BringWindowToFront(window.WindowId);

0 commit comments

Comments
 (0)