Diffusion KWin 652777b098be

Try to call desktopRezie once intead of doing it in all XRandR events.

Authored by afiestas on Jul 24 2011, 8:56 PM.

Description

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

Details

Committed
afiestasJul 24 2011, 8:57 PM
Parents
R108:671dfdd9dc42: SVN_SILENT made messages (.desktop file)
Branches
Unknown
Tags
Unknown