diff -r 56cd8111b7f7 -r 41300fa6a67c src/gui/kernel/qdesktopwidget_x11.cpp --- 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 oldRects(oldScreenCount); - QVector 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); }