diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-11 19:29:25 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-10-11 19:29:25 -0500 |
commit | 2771be621097ef41405e184507fcf10b8b091ae0 (patch) | |
tree | 892b850506591d371e7cae0d23467b60eadd3cea /tdeui/krootpixmap.cpp | |
parent | 08bbf7c85be860a04e0be588d9ae4d635faf4c28 (diff) | |
download | tdelibs-2771be621097ef41405e184507fcf10b8b091ae0.tar.gz tdelibs-2771be621097ef41405e184507fcf10b8b091ae0.zip |
Fix KRootBacking failure when no window is displayed
This partially resolves Bug 811
Diffstat (limited to 'tdeui/krootpixmap.cpp')
-rw-r--r-- | tdeui/krootpixmap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tdeui/krootpixmap.cpp b/tdeui/krootpixmap.cpp index 539a45e27..3530b5d45 100644 --- a/tdeui/krootpixmap.cpp +++ b/tdeui/krootpixmap.cpp @@ -234,8 +234,9 @@ void KRootPixmap::repaint(bool force) m_Rect = TQRect(p1, p2); #ifdef Q_WS_X11 m_Desk = KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop(); - if (m_Desk == NET::OnAllDesktops) + if ((m_Desk == NET::OnAllDesktops) || (m_Desk == 0)) { m_Desk = currentDesktop(); + } // KSharedPixmap will correctly generate a tile for us. m_pPixmap->loadFromShared(pixmapName(m_Desk), m_Rect); |