Index: workspace/libs/plasma/dialog.cpp =================================================================== --- workspace/libs/plasma/dialog.cpp (revision 762032) +++ workspace/libs/plasma/dialog.cpp (working copy) @@ -25,7 +25,9 @@ #include #include #include +#ifdef Q_WS_X11 #include +#endif #include #include @@ -34,10 +36,11 @@ #include +#ifdef Q_WS_X11 #include +#endif - namespace Plasma { Index: workspace/libs/plasma/widgets/tooltip.cpp =================================================================== --- workspace/libs/plasma/widgets/tooltip.cpp (revision 762032) +++ workspace/libs/plasma/widgets/tooltip.cpp (working copy) @@ -25,13 +25,17 @@ #include #include #include +#ifdef Q_WS_X11 #include +#endif #include #include +#ifdef Q_WS_X11 #include #include +#endif #include "plasma/plasma.h" @@ -194,6 +198,7 @@ bool WindowPreview::previewsAvailable() const { +#ifdef Q_WS_X11 if( !KWindowSystem::compositingActive()) return false; // hackish way to find out if KWin has the effect enabled, @@ -207,6 +212,7 @@ XFree( list ); return ret; } +#endif return false; } @@ -223,17 +229,20 @@ void WindowPreview::readWindowSize() const { +#ifdef Q_WS_X11 Window r; int x, y; unsigned int w, h, b, d; if( XGetGeometry( QX11Info::display(), id, &r, &x, &y, &w, &h, &b, &d )) windowSize = QSize( w, h ); else +#endif windowSize = QSize(); } void WindowPreview::setInfo() { +#ifdef Q_WS_X11 Display* dpy = QX11Info::display(); Atom atom = XInternAtom( dpy, "_KDE_WINDOW_PREVIEW", False ); if( id == 0 ) { @@ -250,6 +259,7 @@ long data[] = { 1, 5, id, x(), y(), width(), height() }; XChangeProperty( dpy, parentWidget()->winId(), atom, atom, 32, PropModeReplace, reinterpret_cast< unsigned char* >( data ), sizeof( data ) / sizeof( data[ 0 ] )); +#endif }