diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-28 23:40:58 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-28 23:40:58 +0000 |
commit | afb2c168c783226ad1b97f0b1423def304ae1de9 (patch) | |
tree | d5ac27dbe0684d6a618e3051b920570fe118ec9e /konsole/konsole/konsole.cpp | |
parent | 226b87a2e4f6d8ce7fd19248decd00bdfab7bd19 (diff) | |
download | tdebase-afb2c168c783226ad1b97f0b1423def304ae1de9.tar.gz tdebase-afb2c168c783226ad1b97f0b1423def304ae1de9.zip |
Add ability to "punch through" to desktop for transparency in kompmgr
Activate Konsole ARGB mode by default when kompmgr is running
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1249953 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konsole/konsole/konsole.cpp')
-rw-r--r-- | konsole/konsole/konsole.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp index e47236e63..973e17abe 100644 --- a/konsole/konsole/konsole.cpp +++ b/konsole/konsole/konsole.cpp @@ -144,6 +144,9 @@ Time to start a requirement list. #include <netwm.h> #include "printsettings.h" +#include <X11/Xlib.h> +#include <X11/Xatom.h> + #define KONSOLEDEBUG kdDebug(1211) #define POPUP_NEW_SESSION_ID 121 @@ -344,6 +347,11 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo // connect(kapp, TQT_SIGNAL(kdisplayFontChanged()), this, TQT_SLOT(slotFontChanged())); kapp->dcopClient()->setDefaultObject( "konsole" ); + + // Signal that we want to be transparent to the desktop, not to windows behind us... + Atom kde_wm_transparent_to_desktop; + kde_wm_transparent_to_desktop = XInternAtom(qt_xdisplay(), "_KDE_TRANSPARENT_TO_DESKTOP", False); + XChangeProperty(qt_xdisplay(), winId(), kde_wm_transparent_to_desktop, XA_INTEGER, 32, PropModeReplace, (unsigned char *) "TRUE", 1L); } |