summaryrefslogtreecommitdiffstats
path: root/tdeui/krootpixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/krootpixmap.cpp')
-rw-r--r--tdeui/krootpixmap.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tdeui/krootpixmap.cpp b/tdeui/krootpixmap.cpp
index 93cb1f456..5a0923566 100644
--- a/tdeui/krootpixmap.cpp
+++ b/tdeui/krootpixmap.cpp
@@ -37,7 +37,7 @@ class KRootPixmapData
{
public:
TQWidget *toplevel;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
KWinModule *twin;
#endif
};
@@ -69,7 +69,7 @@ void KRootPixmap::init()
connect(kapp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int)));
connect(m_pTimer, TQ_SIGNAL(timeout()), TQ_SLOT(repaint()));
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
connect(m_pPixmap, TQ_SIGNAL(done(bool)), TQ_SLOT(slotDone(bool)));
d->twin = new KWinModule( this );
@@ -91,7 +91,7 @@ KRootPixmap::~KRootPixmap()
int KRootPixmap::currentDesktop() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
NETRootInfo rinfo( tqt_xdisplay(), NET::CurrentDesktop );
rinfo.activate();
return rinfo.currentDesktop();
@@ -187,7 +187,7 @@ void KRootPixmap::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
@@ -196,7 +196,7 @@ void KRootPixmap::desktopChanged(int desktop)
void KRootPixmap::desktopChanged( WId window, unsigned int properties )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( !(properties & NET::WMDesktop) ||
(window != m_pWidget->topLevelWidget()->winId()))
return;
@@ -232,7 +232,7 @@ void KRootPixmap::repaint(bool force)
return;
}
m_Rect = TQRect(p1, p2);
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
m_Desk = KWin::windowInfo(m_pWidget->topLevelWidget()->winId()).desktop();
if ((m_Desk == NET::OnAllDesktops) || (m_Desk == 0)) {
m_Desk = currentDesktop();
@@ -254,7 +254,7 @@ void KRootPixmap::repaint(bool force)
bool KRootPixmap::isAvailable() const
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
return m_pPixmap->isAvailable(pixmapName(m_Desk));
#else
return m_pPixmap->isNull();
@@ -263,7 +263,7 @@ bool KRootPixmap::isAvailable() const
TQString KRootPixmap::pixmapName(int desk) {
TQString pattern = TQString("DESKTOP%1");
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int screen_number = DefaultScreen(tqt_xdisplay());
if (screen_number) {
pattern = TQString("SCREEN%1-DESKTOP").arg(screen_number) + "%1";
@@ -275,7 +275,7 @@ TQString KRootPixmap::pixmapName(int desk) {
void KRootPixmap::enableExports()
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
kdDebug(270) << k_lineinfo << "activating background exports.\n";
DCOPClient *client = kapp->dcopClient();
if (!client->isAttached())