summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2017-11-05 14:03:02 -0600
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2017-11-05 14:03:02 -0600
commit4cd09a2f3b25c1af5939f5de0153b1438241a874 (patch)
tree5b52bc120cab36cf361edc964862ddf251220bca /src
parenta92fc98246f351ed6657788b9b12aca7cce4771a (diff)
Wait for mousebutton to reduce MO cpu use while waiting
Diffstat (limited to 'src')
-rw-r--r--src/organizercore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index d12b77b9..f8a368c9 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1260,7 +1260,7 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode)
// Wait for a an event on the handle, a key press, mouse click or timeout
while (
res = ::MsgWaitForMultipleObjects(1, &handle, false, 500,
- QS_KEY | QS_MOUSE),
+ QS_KEY | QS_MOUSEBUTTON),
((m_UserInterface == nullptr) || !m_UserInterface->unlockClicked())) {
if (!::GetVFSProcessList(&numProcesses, processes)) {
@@ -1311,7 +1311,7 @@ bool OrganizerCore::waitForProcessCompletion(HANDLE handle, LPDWORD exitCode)
if (handles.size() > 0) {
// By the time we get here, the main wait function should always immediately continue
// Passing in a handle doesn't seem to work for subprocesses
- ::MsgWaitForMultipleObjects(0, NULL, FALSE, 500, QS_KEY | QS_MOUSE);
+ ::MsgWaitForMultipleObjects(0, NULL, FALSE, 500, QS_KEY | QS_MOUSEBUTTON);
}
}