diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-07-27 14:00:47 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-07-27 14:16:51 (GMT) |
commit | ef105812bd65d7536f2d403dd3b65a0b77ea843c (patch) | |
tree | 12f3f0f56ea69b5b6e61bc58394b6a37dd5035d0 /src/gui/kernel | |
parent | fab51e1d9ce57be4d786ad7c9df8bc695252a0de (diff) | |
download | Qt-ef105812bd65d7536f2d403dd3b65a0b77ea843c.zip Qt-ef105812bd65d7536f2d403dd3b65a0b77ea843c.tar.gz Qt-ef105812bd65d7536f2d403dd3b65a0b77ea843c.tar.bz2 |
Roll back the fancy updating of translucent windows.
The problem with the fix, though it produces less flicker when
resizing, is that it delays telling windows that the window has moved
until after the window has been completely repainted. Problem with
this is that functions that rely on windows to be up to date will fail
until the backbuffer is flushed. This was the case for mapTo/FromGlobal, and potentially other functions too.
Reviewed-By: Eskil
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget_win.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/kernel/qwidget_win.cpp b/src/gui/kernel/qwidget_win.cpp index 3ab1ccb..f7ff2d0 100644 --- a/src/gui/kernel/qwidget_win.cpp +++ b/src/gui/kernel/qwidget_win.cpp @@ -1468,10 +1468,7 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove) qt_wince_maximize(q); } else { #endif - if (!isTranslucentWindow) - MoveWindow(q->internalWinId(), fs.x(), fs.y(), fs.width(), fs.height(), true); - else if (isMove && !isResize) - SetWindowPos(q->internalWinId(), 0, fs.x(), fs.y(), 0, 0, SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOZORDER); + MoveWindow(q->internalWinId(), fs.x(), fs.y(), fs.width(), fs.height(), true); } if (!q->isVisible()) InvalidateRect(q->internalWinId(), 0, FALSE); |