<table><tr><td style="">sebas created this revision.<br />sebas added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.</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/D2154" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When changing position (and potentially other properties) of the screen<br />
setup, we receive delayed signals way after the sync operation finishes.<br />
This enables the apply button after the config has been applied, leading<br />
to the apply/discard confirmation dialog when closing (or navigating<br />
away from) the kscreen kcm.</p>
<p>This patch disables propagation of the changed() signal at the highest<br />
level, meaning that config widgets internally still get updated, but the<br />
apply button only gets enabled after 1000 milliseconds. This magic value<br />
is what I've figured out by testing. It's long enough to re-request edid<br />
information on two outputs, but short enough to get in the way from<br />
further changes.</p>
<p>I'm not super-happy with the timer, but I don't see any other way to fix<br />
this glitch in the user experience. We don't really have a way on X11 to<br />
know when all changes are flushed.</p>
<p>BUG:365467</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested systemsettings and kcmshell, with this patch, it works reliably and doesn't get in the way.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKSCREEN KScreen</div></div></div><br /><div><strong>BRANCH</strong><div><div>blockkcmchanges</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2154" rel="noreferrer">https://phabricator.kde.org/D2154</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcm/src/kcm_kscreen.cpp<br />
kcm/src/kcm_kscreen.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>sebas, Plasma<br /><strong>Cc: </strong>plasma-devel, jensreuterberg, abetts, sebas<br /></div>