summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/lockprocess.cc
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2013-08-26 21:16:42 +0400
committerSlávek Banko <slavek.banko@axis.cz>2013-08-29 18:33:11 +0200
commit2b313a81f149fe6b9bbf087d5a751f61b5c844e5 (patch)
tree57c355b19db24d91caaca313ffc7398ec98a42e6 /kdesktop/lock/lockprocess.cc
parent25711bf3486b9e6080b19ec4e501b671a3baff30 (diff)
downloadtdebase-2b313a81f149fe6b9bbf087d5a751f61b5c844e5.tar.gz
tdebase-2b313a81f149fe6b9bbf087d5a751f61b5c844e5.zip
kdesktop/lock: remove tqwidget-include hacks
Diffstat (limited to 'kdesktop/lock/lockprocess.cc')
-rw-r--r--kdesktop/lock/lockprocess.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index b818b2636..a90f15c09 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -16,10 +16,6 @@
//crashes (e.g. because it's set to multiple wallpapers and
//some image will be corrupted).
-#define protected public
-#include <tqwidget.h>
-#undef protected
-
#include <config.h>
#include "lockprocess.h"
@@ -1001,13 +997,8 @@ void LockProcess::desktopResized()
m_maskWidget->setGeometry(0, 0, mRootWidth, mRootHeight);
}
else {
- int flags = CWOverrideRedirect;
- Visual* visual = CopyFromParent;
- XSetWindowAttributes attrs;
- attrs.override_redirect = 1;
- Window maskWindow = XCreateWindow(x11Display(), RootWindow( x11Display(), x11Screen()), 0, 0, mRootWidth, mRootHeight, 0, x11Depth(), InputOutput, visual, flags, &attrs);
- m_maskWidget = new TQWidget();
- m_maskWidget->create(maskWindow);
+ m_maskWidget = new TQWidget(0, 0, TQt::WStyle_StaysOnTop | TQt::WX11BypassWM);
+ m_maskWidget->setGeometry(0, 0, mRootWidth, mRootHeight);
m_maskWidget->setBackgroundColor(TQt::black);
m_maskWidget->erase();
m_maskWidget->show();