From d092f4d8df0feafc8cb956f4e728088b807c1edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 25 Apr 2008 11:10:08 +0000 Subject: [PATCH] Appearently, PopState() should flush right a way if not in a transaction, or else the server will keep working with the state and especially a clipping region which should not be effective anymore. This fixes one problem I could observe with my test app. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25154 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 6a5e8d82e4..f0c19d563b 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -1625,6 +1625,7 @@ BView::PopState() _CheckOwnerLockAndSwitchCurrent(); fOwner->fLink->StartMessage(AS_VIEW_POP_STATE); + _FlushIfNotInTransaction(); // invalidate all flags (except those that are not part of pop/push) fState->valid_flags = B_VIEW_VIEW_COLOR_BIT;