From 89fc1d9819a83c6b0f8fe96ad57ed6f82db106b6 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Wed, 8 Jun 2011 12:05:40 +1000 Subject: [PATCH] VBufBackend_t::cancelPendingUpdate: reset renderThreadTimerID to 0 after killing the timer. This will stop any possible pending updates from happening that were still possibly in the windows message queue after KillTimer was called. This more importantly also fixes a problem introduced by r4356 where after a text change and focus change happen in quick succession only focus changes will update the buffer after that point. E.g. after changing the value in a combo box, edit fields would never update their content again. --- nvdaHelper/vbufBase/backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nvdaHelper/vbufBase/backend.cpp b/nvdaHelper/vbufBase/backend.cpp index 797204818..0b1c0b123 100644 --- a/nvdaHelper/vbufBase/backend.cpp +++ b/nvdaHelper/vbufBase/backend.cpp @@ -84,6 +84,7 @@ void VBufBackend_t::requestUpdate() { void VBufBackend_t::cancelPendingUpdate() { if(renderThreadTimerID>0) { KillTimer(0,renderThreadTimerID); + renderThreadTimerID=0; LOG_DEBUG(L"Killed timer with ID "<