Re: HOW-TO: Build Unity with 'Dodge Windows' and minimize/unminimize behavior

Originally Posted by
nilarimogard
Like jsevi83 said above, it seems there's a bug with minimize when there's more than one window for the same application (but minimize with a single window works fine for me). This is how it's supposed to work:
1. If there is no opened window for that app
1.a. Open a new window
2. If there is only one opened window for that app
2.a. Focus the window, if not focused
2.b. Minimize the window
2.c. Restore the window
2.d. Goto 2.a
3. If there is more than one opened window for that app
3.a. Focus the latest used window, if not focused
3.b. Open spread view
3.c. Close spread view and minimize all windows of that app
3.d. Restore the latest used window
3.e. Goto 3.a
But step 3.c doesn't... it just opens the spread view but doesn't minimize the app.
I've fixed the behavior to act like you described. While it works, the bug discussed earlier in this thread (blank after unminimizing) is very noticeable.
However, the behavior now works like this:
Multiple windows are opened -> Spread occurs on-click -> All windows are minimized on-click -> Last windows in focus will appear individually on-click.
For now, until the 'blank window issue' is fixed upstream, I'll leave the current behavior as is. However, I'll push the changes to my Github so you can pull them if you want.
Laptop: [AMD Vision A4-3300M | 8GB RAM | ATI Radeon 6480G | Ubuntu 12.04 64-bit]
Studio Box: [AMD Athlon 64 X2 5000+ | 4GB RAM | Nvidia 210 | M-Audio FastTrackPro | KXStudio 11.04 64-bit | 2.6.31-rt14-custom | KDE 4.6.5]
Bookmarks