summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems/testlite
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-10-12 13:07:49 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-10-12 13:08:49 (GMT)
commit7a078ab4f9abf814766c310ab41575d89bb622ce (patch)
treee6ee72982e2d8b48a1cec827eac313350004f657 /src/plugins/graphicssystems/testlite
parent0be3fc435c0ada8d5f93389cdf4c96193f015f8f (diff)
downloadQt-7a078ab4f9abf814766c310ab41575d89bb622ce.zip
Qt-7a078ab4f9abf814766c310ab41575d89bb622ce.tar.gz
Qt-7a078ab4f9abf814766c310ab41575d89bb622ce.tar.bz2
Make tooltips work.
Diffstat (limited to 'src/plugins/graphicssystems/testlite')
-rw-r--r--src/plugins/graphicssystems/testlite/x11util.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/graphicssystems/testlite/x11util.cpp b/src/plugins/graphicssystems/testlite/x11util.cpp
index 6c8377a..e4d3e89 100644
--- a/src/plugins/graphicssystems/testlite/x11util.cpp
+++ b/src/plugins/graphicssystems/testlite/x11util.cpp
@@ -219,7 +219,7 @@ bool MyDisplay::handleEvent(XEvent *xe)
}
}
if (!xw) {
- qWarning() << "Unknown window" << xe->xany.window << "received event" << hex << xe->type;
+ qWarning() << "Unknown window" << hex << xe->xany.window << "received event" << xe->type;
return quit;
}
@@ -358,13 +358,16 @@ MyWindow::MyWindow(MyDisplay *display, int x, int y, int w, int h)
xd->windowList.append(this);
-#ifdef MYX11_DEBUG
- qDebug() << "MyWindow::MyWindow";
-#endif
window = XCreateSimpleWindow(xd->display, xd->rootWindow(),
x, y, w, h, 0 /*border_width*/,
xd->blackPixel(), xd->whitePixel());
+
+#ifdef MYX11_DEBUG
+ qDebug() << "MyWindow::MyWindow" << hex << window;
+#endif
+
+
width = -1;
height = -1;
xpos = -1;
@@ -373,7 +376,8 @@ MyWindow::MyWindow(MyDisplay *display, int x, int y, int w, int h)
XSetWindowBackgroundPixmap(xd->display, window, XNone);
XSelectInput(xd->display, window, ExposureMask | KeyPressMask | KeyReleaseMask |
- ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | StructureNotifyMask);
+ PointerMotionMask | ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
+ StructureNotifyMask);
gc = createGC();
@@ -387,6 +391,9 @@ MyWindow::MyWindow(MyDisplay *display, int x, int y, int w, int h)
MyWindow::~MyWindow()
{
+#ifdef MYX11_DEBUG
+ qDebug() << "~MyWindow" << hex << window;
+#endif
XFreeGC(xd->display, gc);
XDestroyWindow(xd->display, window);