00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __kdesktopapp_h__
00021 #define __kdesktopapp_h__
00022
00023 #include <config.h>
00024 #include <kuniqueapplication.h>
00025
00026 #if defined(Q_WS_X11) && defined(HAVE_XRENDER) && QT_VERSION >= 0x030300
00027 #define COMPOSITE
00028 #endif
00029
00030 #ifdef COMPOSITE
00031 # include <X11/Xlib.h>
00032 # include <X11/Xatom.h>
00033 # include <fixx11h.h>
00034 #endif
00035
00036 class KDesktopApp : public KUniqueApplication
00037 {
00038 Q_OBJECT
00039 public:
00040 KDesktopApp();
00041 KDesktopApp(Display * dpy, Qt::HANDLE visual = 0,
00042 Qt::HANDLE colormap = 0);
00043
00044 #ifdef COMPOSITE
00045 bool x11EventFilter (XEvent *);
00046
00047 bool cmBackground ()
00048 {
00049 return m_bgSupported;
00050 }
00051 #endif
00052
00053 signals:
00054 void cmBackgroundChanged(bool supported);
00055
00056 #ifdef COMPOSITE
00057 private:
00058 void initCmBackground();
00059
00060 private:
00061
00062 Atom m_cmBackground;
00063 Bool m_bgSupported;
00064 #endif
00065 };
00066
00067 #endif