Try to call desktopRezie once intead of doing it in all XRandR events.
author Alex Fiestas
()
committer Alex Fiestas
()
commit 6a07efdd744b47d102c5093613ee1349284fa8ef
tree 778abc4916f7bf4bf0bd933974c56eca661eec78
parent bc3d6c65c16f570ea84c2eee16a347fe556d6a71
Try to call desktopRezie once intead of doing it in all XRandR events.

When a screen is disconnected XRandR emits 3 events instead of just one:
1-Disconnected screen resized
2-Disconnected screen moved
3-Disconnected screen removed

Before this commit we were calling desktopResize on each event which
between other things restart the composite (not necessarily the faster
thing to do...).

So, in order to be able to call desktopResize only once, now we're
handling individually each event, when one of them happens a QTimer is
started/restarted on each event and desktopResized is called owhen
QTimer.timeout

The current interval is 100msec
(cherry picked from commit 6f891693405d695f73231d8d04864389aa47c0b2)
kwin/workspace.cpp
kwin/workspace.h