diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-02 10:52:15 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-02 10:52:15 +0200 |
commit | 3edff16c872fe7abe87007ba2ec78467f35430a9 (patch) | |
tree | 0c85e170952942d76e148caea8f2c5c689d9c22a /src/plugins/platforms/xcb | |
parent | 3086f2098e94754b6bf5359ade8224b351979579 (diff) |
Properly handle the expose event for QWindow.
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index 4d420e36a0..b0df622b33 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -528,18 +528,12 @@ QPlatformGLContext *QXcbWindow::glContext() const void QXcbWindow::handleExposeEvent(const xcb_expose_event_t *event) { -#if 0 - QWidget *widget = window()->widget(); - if (!widget) - return; - - QWindowSurface *surface = widget->windowSurface(); + QWindowSurface *surface = window()->surface(); if (surface) { QRect rect(event->x, event->y, event->width, event->height); - surface->flush(widget, rect, QPoint()); + surface->flush(window(), rect, QPoint()); } -#endif } void QXcbWindow::handleClientMessageEvent(const xcb_client_message_event_t *event) |