diff options
Diffstat (limited to 'konsole')
| -rw-r--r-- | konsole/konsole/konsole.cpp | 20 | ||||
| -rw-r--r-- | konsole/konsole/konsole.h | 1 | 
2 files changed, 16 insertions, 5 deletions
| diff --git a/konsole/konsole/konsole.cpp b/konsole/konsole/konsole.cpp index b6d5e1c69..4faef5239 100644 --- a/konsole/konsole/konsole.cpp +++ b/konsole/konsole/konsole.cpp @@ -266,6 +266,7 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo  ,b_installBitmapFonts(false)  ,b_framevis(true)  ,b_metaAsAlt(false) +,b_realTransparency(false)  ,b_fullscreen(false)  ,m_menuCreated(false)  ,b_warnQuit(false) @@ -361,11 +362,6 @@ Konsole::Konsole(const char* name, int histon, bool menubaron, bool tabbaron, bo  //  connect(kapp, TQT_SIGNAL(tdedisplayFontChanged()), 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(tqt_xdisplay(), "_TDE_TRANSPARENT_TO_DESKTOP", False); -  XChangeProperty(tqt_xdisplay(), winId(), kde_wm_transparent_to_desktop, XA_INTEGER, 32, PropModeReplace, (unsigned char *) "TRUE", 1L);  } @@ -1616,6 +1612,20 @@ void Konsole::readProperties(TDEConfig* config, const TQString &schema, bool glo       s_word_seps= config->readEntry("wordseps",":@-./_~");       b_framevis = config->readBoolEntry("has frame",true);       b_metaAsAlt = config->readBoolEntry("metaAsAltMode",false); +     b_realTransparency = config->readBoolEntry("RealTransparency",false); + +     Atom kde_wm_transparent_to_desktop; +     kde_wm_transparent_to_desktop = XInternAtom(tqt_xdisplay(), "_TDE_TRANSPARENT_TO_DESKTOP", False); +     if (b_realTransparency) +     { +       XDeleteProperty(tqt_xdisplay(), winId(), kde_wm_transparent_to_desktop); +     } +     else +     { +       // Signal that we want to be transparent to the desktop, not to windows behind us... +       XChangeProperty(tqt_xdisplay(), winId(), kde_wm_transparent_to_desktop, XA_INTEGER, 32, PropModeReplace, (unsigned char *) "TRUE", 1L); +     } +        TQPtrList<TEWidget> tes = activeTEs();       for (TEWidget *_te = tes.first(); _te; _te = tes.next()) {         _te->setWordCharacters(s_word_seps); diff --git a/konsole/konsole/konsole.h b/konsole/konsole/konsole.h index 30ca6e5a1..fff364eb7 100644 --- a/konsole/konsole/konsole.h +++ b/konsole/konsole/konsole.h @@ -428,6 +428,7 @@ private:    bool        b_framevis:1;    bool        b_metaAsAlt:1; +  bool        b_realTransparency:1;    bool        b_fullscreen:1;    bool        m_menuCreated:1;    bool        b_warnQuit:1; | 
