summaryrefslogtreecommitdiffstats
path: root/src/clip.cpp
diff options
context:
space:
mode:
authorPascal Viandier <[email protected]>2015-10-01 19:38:38 +0200
committerSlávek Banko <[email protected]>2015-10-01 19:38:38 +0200
commit1e0e72fceb542e4eb984b50f747c38314f055b8f (patch)
tree40d35ec3682c465348f8d8d73509aeda4729a8bb /src/clip.cpp
parentc9e33e7d3fcd5b21a00e13dcbb5742a6c8da6106 (diff)
downloadkooldock-1e0e72fceb542e4eb984b50f747c38314f055b8f.tar.gz
kooldock-1e0e72fceb542e4eb984b50f747c38314f055b8f.zip
Fix remaining issues and build warnings
Cleanup code Signed-off-by: Pascal Viandier <[email protected]>
Diffstat (limited to 'src/clip.cpp')
-rw-r--r--src/clip.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/clip.cpp b/src/clip.cpp
index 38137d9..d47b3e8 100644
--- a/src/clip.cpp
+++ b/src/clip.cpp
@@ -9,10 +9,13 @@
#include <kdebug.h>
-clip::clip(TQWidget *parent, const char *name) : TQWidget(parent, name, WStyle_Customize | WStyle_NoBorder | WNoAutoErase | WDestructiveClose | WMouseNoMask | WStyle_StaysOnTop)
+clip::clip(TQWidget* parent,
+ const char* name) :
+ TQWidget(parent, name,
+ WStyle_Customize | WStyle_NoBorder | WNoAutoErase | WDestructiveClose | WMouseNoMask | WStyle_StaysOnTop)
{
- info = new NETWinInfo( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMState);
- info->setDesktop( NETWinInfo::OnAllDesktops );
+ info = new NETWinInfo(tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMState);
+ info->setDesktop(NETWinInfo::OnAllDesktops);
info->setState(NETWinInfo::SkipTaskbar | NETWinInfo::SkipPager, NETWinInfo::SkipTaskbar | NETWinInfo::SkipPager);
hide();
@@ -22,7 +25,7 @@ clip::clip(TQWidget *parent, const char *name) : TQWidget(parent, name, WStyle_C
KWin::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
KWin::setType(winId(), NET::Dock);
- setCaption("kooldock clipping window");
+ setCaption("kooldock clipping window");
}
clip::~clip()
@@ -31,10 +34,10 @@ clip::~clip()
void clip::clipDesktop(int p1,int p2,int p3,int p4,int p5,int p6,int p7,int p8,int p9,int p10,int p11,int p12)
{
-KWin::setExtendedStrut(winId(), p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
+ KWin::setExtendedStrut(winId(), p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
}
-void clip::paintEvent(TQPaintEvent *)
+void clip::paintEvent(TQPaintEvent*)
{
TQBitmap bm(size());
TQPainter mp;
@@ -42,6 +45,5 @@ void clip::paintEvent(TQPaintEvent *)
mp.begin(&bm, this);
mp.fillRect(rect(), TQt::black);
mp.end();
-
setMask(bm);
}