summaryrefslogtreecommitdiffstats
path: root/twin/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twin/utils.cpp')
-rw-r--r--twin/utils.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/twin/utils.cpp b/twin/utils.cpp
index e7e5c7d32..d21393d2e 100644
--- a/twin/utils.cpp
+++ b/twin/utils.cpp
@@ -37,10 +37,6 @@ License. See the file "COPYING" for the exact licensing terms.
#include "atoms.h"
#include "notifications.h"
-#ifdef USE_QT4
-#include <Qt/qx11info_x11.h>
-#endif // USE_QT4
-
#endif
namespace KWinInternal
@@ -61,7 +57,7 @@ bool Shape::hasShape( WId w)
unsigned int wws, hws, wbs, hbs;
int boundingShaped = 0, clipShaped = 0;
if (!available())
- return FALSE;
+ return false;
XShapeQueryExtents(tqt_xdisplay(), w,
&boundingShaped, &xws, &yws, &wws, &hws,
&clipShaped, &xbs, &ybs, &wbs, &hbs);
@@ -278,7 +274,7 @@ void updateXTime()
XCheckIfEvent( tqt_xdisplay(), &dummy, update_x_time_predicate, NULL );
}
assert( next_x_time != CurrentTime );
- SET_QT_X_TIME(next_x_time);
+ set_tqt_x_time(next_x_time);
XEvent ev; // remove the PropertyNotify event from the events queue
XWindowEvent( tqt_xdisplay(), w->winId(), PropertyChangeMask, &ev );
}