diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-09-28 10:19:10 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-09-28 10:40:48 (GMT) |
commit | 196ca2202d74538ab8d34e47ec8966d4b0a0b8e2 (patch) | |
tree | f5bc8436d7af73ae6b8f6e92e85108ae4eb859f9 /src/corelib | |
parent | fe4dc49c8f4f201f7286027adb2ba21ffebc14cc (diff) | |
download | Qt-196ca2202d74538ab8d34e47ec8966d4b0a0b8e2.zip Qt-196ca2202d74538ab8d34e47ec8966d4b0a0b8e2.tar.gz Qt-196ca2202d74538ab8d34e47ec8966d4b0a0b8e2.tar.bz2 |
QEventLoop::ExcludeUserInputEvents should not allow the user to close the window
These types of input events are not handled by the normal mouse and
key event handlers on X11 and Windows. Add special cases for them to
make sure that they are not delivered while ExcludeUserInputEvents is
set.
Task-number: QTBUG-4242
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/kernel/qeventdispatcher_win.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_win.cpp b/src/corelib/kernel/qeventdispatcher_win.cpp index 83114dc..0474bf3 100644 --- a/src/corelib/kernel/qeventdispatcher_win.cpp +++ b/src/corelib/kernel/qeventdispatcher_win.cpp @@ -678,7 +678,8 @@ bool QEventDispatcherWin32::processEvents(QEventLoop::ProcessEventsFlags flags) || (msg.message >= WM_MOUSEFIRST && msg.message <= WM_MOUSELAST) || msg.message == WM_MOUSEWHEEL - || msg.message == WM_MOUSEHWHEEL)) { + || msg.message == WM_MOUSEHWHEEL + || msg.message == WM_CLOSE)) { // queue user input events for later processing haveMessage = false; d->queuedUserInputEvents.append(msg); |