bshah created this revision. bshah added a reviewer: Plasma. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY At startup and as well when one moves panel, resizePanel is called multiple times. For instance, at startup resizePanel is called 8 times in row from different callers. So add timer to do panel resize in one go. This will avoid multiple resize. TEST PLAN Resized, and moved my panel, worked without any obvious regressions. also added debug statement in the resizePanel, which got printed just 3 times at startup with this patch while before it was getting printed 8-9 times. REPOSITORY rPLASMAWORKSPACE Plasma Workspace BRANCH event-compress-panel-resize (branched from Plasma/5.8) REVISION DETAIL https://phabricator.kde.org/D2975 AFFECTED FILES shell/panelview.cpp shell/panelview.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: bshah, #plasma Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas