Fix composite extension auto detection

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246278 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent c2d4c28eba
commit 356e5c30a8

@ -20,6 +20,10 @@
#include "config.h" #include "config.h"
#ifdef HAVE_XCOMPOSITE
#define COMPOSITE
#endif
// #ifdef QTRANSLATOR_H // #ifdef QTRANSLATOR_H
// #error qtranslator.h was already included // #error qtranslator.h was already included
// #endif // QTRANSLATOR_H // #endif // QTRANSLATOR_H
@ -1910,6 +1914,21 @@ KApplication KApplication::KARGBApplicationObject( bool allowStyles ) {
} }
} }
#else #else
void KApplication::getX11RGBAInformation(Display *dpy) {
}
bool KApplication::isCompositionManagerAvailable() {
return false;
}
bool KApplication::detectCompositionManagerAvailable(bool force_available) {
return false;
}
Display* KApplication::openX11RGBADisplay() {
return 0;
}
Qt::HANDLE KApplication::getX11RGBAVisual(char *display) { Qt::HANDLE KApplication::getX11RGBAVisual(char *display) {
return 0; return 0;
} }

@ -48,8 +48,6 @@ class KSessionManaged;
class KStyle; class KStyle;
class KURL; class KURL;
#define COMPOSITE // [FIXME] Autodetect composition support
#define kapp KApplication::kApplication() #define kapp KApplication::kApplication()
class KApplicationPrivate; class KApplicationPrivate;
@ -866,13 +864,14 @@ public:
*/ */
TQString checkRecoverFile( const TQString& pFilename, bool& bRecover ) const; TQString checkRecoverFile( const TQString& pFilename, bool& bRecover ) const;
#if defined(Q_WS_X11) && defined(COMPOSITE) #if defined(Q_WS_X11)
/** /**
* @internal * @internal
* Get the X11 display * Get the X11 display
* @return the X11 Display * @return the X11 Display
*/ */
Display *getDisplay() { return display; } Display *getDisplay() { return display; }
#endif
/** /**
* @internal * @internal
@ -904,7 +903,6 @@ public:
* @return the X11 display handle * @return the X11 display handle
*/ */
Display *openX11RGBADisplay(); Display *openX11RGBADisplay();
#endif
/** /**
* @internal * @internal
@ -1281,7 +1279,7 @@ private:
void initUrlActionRestrictions(); void initUrlActionRestrictions();
bool argb_visual; bool argb_visual;
#if defined(Q_WS_X11) && defined(COMPOSITE) #if defined(Q_WS_X11)
Qt::HANDLE argb_x11_visual; Qt::HANDLE argb_x11_visual;
Qt::HANDLE argb_x11_colormap; Qt::HANDLE argb_x11_colormap;
#endif #endif

Loading…
Cancel
Save