src/gui/kernel/qdesktopwidget_x11.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
--- a/src/gui/kernel/qdesktopwidget_x11.cpp	Tue Jan 26 12:42:25 2010 +0200
+++ b/src/gui/kernel/qdesktopwidget_x11.cpp	Tue Feb 02 00:43:10 2010 +0200
@@ -384,10 +384,8 @@
     Q_D(QDesktopWidget);
     int oldScreenCount = d->screenCount;
     QVector<QRect> oldRects(oldScreenCount);
-    QVector<QRect> oldWorks(oldScreenCount);
     for (int i = 0; i < oldScreenCount; ++i) {
         oldRects[i] = d->rects[i];
-        oldWorks[i] = d->workareas[i];
     }
 
     d->init();
@@ -397,13 +395,6 @@
             emit resized(i);
     }
 
-    // ### workareas are just reset by init, not filled with new values
-    // ### so this will not work correctly
-    for (int j = 0; j < qMin(oldScreenCount, d->screenCount); ++j) {
-        if (oldWorks.at(j) != d->workareas[j])
-            emit workAreaResized(j);
-    }
-
     if (oldScreenCount != d->screenCount) {
         emit screenCountChanged(d->screenCount);
     }