diff options
Diffstat (limited to 'src/xosd.cpp')
-rw-r--r-- | src/xosd.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xosd.cpp b/src/xosd.cpp index fed3313..37f1f2b 100644 --- a/src/xosd.cpp +++ b/src/xosd.cpp @@ -15,15 +15,19 @@ #include <kdebug.h> #include <stdlib.h> -xosd::xosd(TQWidget* parent, const char* name) : +xosd::xosd(TQWidget *parent, const char *name) : TQWidget(parent, name, WStyle_Customize | WRepaintNoErase | WStyle_NoBorder | - WDestructiveClose | WResizeNoErase | WMouseNoMask | WStyle_StaysOnTop | WX11BypassWM) + WDestructiveClose | WStyle_StaysOnTop | WX11BypassWM) { info = new NETWinInfo(tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMState); info->setDesktop(NETWinInfo::OnAllDesktops); hide(); KWin::setState(winId(), NET::SkipTaskbar | NET::SkipPager); setCaption("kooldock xosd window"); + w=0; + h=0; + yOffset=0; + fCleaner=0; } xosd::~xosd() @@ -110,7 +114,7 @@ void xosd::paintEvent(TQPaintEvent*) TQPixmap pm(size()); TQBitmap bm(size()); TQPainter p; - + // Drawing text p.begin(&pm, this); if (fCleaner == 1) { |