From 95c58faa2db626bf8cf9d2b91c7d28e035578863 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 11 Jun 2005 13:23:53 +0000 Subject: [PATCH] Now we flush the command buffer after handling a B_PULSE message. This fixes the PulseTest (and probably some other things). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13059 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index c0dd28671a..df37fe9369 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -791,8 +791,13 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target) } case B_PULSE: - if (fPulseEnabled) + if (fPulseEnabled) { sendPulse(top_view); + if (Lock()) { + Flush(); + Unlock(); + } + } break; case B_QUIT_REQUESTED: