From cebfa7dc4515ba30486fe87fb45576ced9258c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 6 Mar 2008 11:15:09 +0000 Subject: [PATCH] I was trying to fix Firefox redraw problems, but this change does not help. However it appears I might have fixed the GL apps drawing over other windows. Cannot reproduce this problem anymore, but it may be that this bug doesn't show on my new setup (32bit double buffered VESA). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24267 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 1 + src/servers/app/ViewLayer.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index 49c9360d79..639c813c03 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -1821,6 +1821,7 @@ fDesktop->LockSingleWindow(); // of the previous state fCurrentLayer->SetUserClipping(NULL); } + fCurrentDrawingRegionValid = false; break; } diff --git a/src/servers/app/ViewLayer.cpp b/src/servers/app/ViewLayer.cpp index 00ff62b90a..0bf3f62034 100644 --- a/src/servers/app/ViewLayer.cpp +++ b/src/servers/app/ViewLayer.cpp @@ -1182,7 +1182,7 @@ ViewLayer::PopState() return; } - bool rebuildClipping = fDrawState->ClippingRegion() != NULL; + bool rebuildClipping = true; //fDrawState->ClippingRegion() != NULL; fDrawState = fDrawState->PopState(); fDrawState->SetSubPixelPrecise(fFlags & B_SUBPIXEL_PRECISE);