|
|
|
@ -67,7 +67,7 @@ bool DesktopWallpaperWatcher::x11Event( XEvent * ev )
|
|
|
|
|
class KMyRootPixmapData
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
#ifdef Q_WS_X11
|
|
|
|
|
#ifdef TQ_WS_X11
|
|
|
|
|
DesktopWallpaperWatcher *twin;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
@ -99,7 +99,7 @@ void KMyRootPixmap::init()
|
|
|
|
|
connect(m_pPixmap, TQ_SIGNAL(done(bool)), TQ_SLOT(slotDone(bool)));
|
|
|
|
|
// connect(m_pTimer, TQ_SIGNAL(timeout()), TQ_SLOT(repaint()));
|
|
|
|
|
|
|
|
|
|
#ifdef Q_WS_X11
|
|
|
|
|
#ifdef TQ_WS_X11
|
|
|
|
|
d->twin = new DesktopWallpaperWatcher();
|
|
|
|
|
connect(d->twin, TQ_SIGNAL(currentDesktopChanged(int)), TQ_SLOT(desktopChanged(int)));
|
|
|
|
|
#endif
|
|
|
|
@ -120,7 +120,7 @@ void KMyRootPixmap::desktopChanged(int desktop)
|
|
|
|
|
!wallpaperForDesktop(m_Desk).isNull())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
// #ifdef Q_WS_X11
|
|
|
|
|
// #ifdef TQ_WS_X11
|
|
|
|
|
// if (KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop() == NET::OnAllDesktops &&
|
|
|
|
|
// pixmapName(m_Desk) != pixmapName(desktop))
|
|
|
|
|
// #endif
|
|
|
|
|