<table><tr><td style="">smerkov updated this revision to Diff 66386.<br />smerkov edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-o2kz3mlg2nd2c3k/">(Show Details)</a><br />smerkov added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D24044">View Revision</a></tr></table><br /><div><div><p>I changed my version to version of zzag, because his code is more simple. I have tested both versions.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">BUG: 356161</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">MinimizeAll should work as follows:<br />
<br />
> As long as there's something to minimize, do that.<br />
> Otherwise unminimize only the windows we minimized<br />
> on last invocation.<br />
<br />
Quote above is from Comment 11 by Thomas Lübking of BUG: 356161.<br />
<br />
But current code does not fulfill these duties. Try next case: run minimizeall on some windows, then click on one of windows, then run minimizeall again. All windows would be unminimized!<br />
<br />
I have tried to make small changes to original code of main.js, but i can't because i don't understand it.<br />
<br />
Thats why i wrote my own version. Then i changed my version to version of zzag, because his code is more simple. I have tested both versions.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D24044?vs=66361&id=66386">https://phabricator.kde.org/D24044?vs=66361&id=66386</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24044">https://phabricator.kde.org/D24044</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>scripts/minimizeall/contents/code/main.js</div></div></div><br /><div><strong>To: </strong>smerkov, colomar, KWin<br /><strong>Cc: </strong>romangg, zzag, kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart<br /></div>