Removed unnecessary debug output in xcb plugin.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 10 Aug 2011 06:33:30 +0000 (08:33 +0200)
committerMorten Johan Sørvig <morten.sorvig@nokia.com>
Wed, 10 Aug 2011 06:35:50 +0000 (08:35 +0200)
Change-Id: I3b354a8649971a5d8c68a0b4f6bbdf6475116d65
Reviewed-on: http://codereview.qt.nokia.com/2808
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp
src/plugins/platforms/xcb/qxcbwindow.h

index 13a0c80..b83f012 100644 (file)
@@ -116,7 +116,6 @@ void QXcbWindow::create()
     destroy();
 
     m_windowState = Qt::WindowNoState;
-    m_hasReceivedSyncRequest = false;
     m_dirtyFrameMargins = true;
 
     Qt::WindowType type = window()->windowType();
@@ -1086,10 +1085,6 @@ void QXcbWindow::handleClientMessageEvent(const xcb_client_message_event_t *even
             xcb_flush(xcb_connection());
         } else if (event->data.data32[0] == atom(QXcbAtom::_NET_WM_SYNC_REQUEST)) {
             connection()->setTime(event->data.data32[1]);
-            if (!m_hasReceivedSyncRequest) {
-                m_hasReceivedSyncRequest = true;
-                printf("Window manager supports _NET_WM_SYNC_REQUEST, syncing resizes\n");
-            }
             m_syncValue.lo = event->data.data32[2];
             m_syncValue.hi = event->data.data32[3];
         } else {
index 89be3b7..a85760e 100644 (file)
@@ -140,7 +140,6 @@ private:
     xcb_sync_int64_t m_syncValue;
     xcb_sync_counter_t m_syncCounter;
 
-    bool m_hasReceivedSyncRequest;
     Qt::WindowState m_windowState;
 
     bool m_mapped;