From e0947c82c8714db7a8b23a8115574dee6f743cb9 Mon Sep 17 00:00:00 2001 From: Adi Oanca Date: Tue, 24 Feb 2004 11:56:43 +0000 Subject: [PATCH] small fixes because of the new redrawing code git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6722 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/server/Workspace.cpp | 12 ++++++------ src/servers/app/server/Workspace.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/servers/app/server/Workspace.cpp b/src/servers/app/server/Workspace.cpp index f8f27b436d..8fceefd168 100644 --- a/src/servers/app/server/Workspace.cpp +++ b/src/servers/app/server/Workspace.cpp @@ -246,10 +246,10 @@ STRACE(("\n@Workspace(%ld)::SetFOCUSLayer( %s )\n", ID(), layer? layer->GetName( if (previousFocus != FocusLayer()){ if (previousFocus) - previousFocus->SetFocus(false); + previousFocus->HighlightDecorator(false); if (FocusLayer()){ - FocusLayer()->SetFocus(true); + FocusLayer()->HighlightDecorator(true); } // TODO: there had to be a Invalidate() vresion witch takes a BRegion parameter @@ -332,8 +332,8 @@ bool Workspace::GoToItem(WinBorder* layer){ return false; } //--------------------------------------------------------------------------- -WinBorder* Workspace::SearchLayerUnderPoint(BPoint pt){ -// TODO: implement correctly one you have clipping code working +WinBorder* Workspace::SearchWinBorder(BPoint pt){ +// TODO: implement correctly once you have clipping code working // For the moment, take windows from front to back and see in witch one 'pt' falls WinBorder *target = NULL; opLock.Lock(); @@ -354,7 +354,7 @@ void Workspace::Invalidate(){ //TODO: *****!*!*!*!*!*!*!**!***REMOVE this! For Test purposes only! opLock.Lock(); if(fOwner->ActiveWorkspace() == this) - fOwner->DoInvalidate(BRegion(fOwner->Bounds()), NULL); + fOwner->FullInvalidate(fOwner->Bounds()); opLock.Unlock(); //---------------- } @@ -408,7 +408,7 @@ void Workspace::RemoveItem(ListData* item){ item->lowerItem = NULL; if (fFocusItem == item){ - fFocusItem->layerPtr->SetFocus(false); + fFocusItem->layerPtr->HighlightDecorator(false); fFocusItem = NULL; } if (fFrontItem == item) diff --git a/src/servers/app/server/Workspace.h b/src/servers/app/server/Workspace.h index 712a6998dc..df7d1cb265 100644 --- a/src/servers/app/server/Workspace.h +++ b/src/servers/app/server/Workspace.h @@ -67,7 +67,7 @@ public: WinBorder* GoToLowerItem(); bool GoToItem(WinBorder* layer); - WinBorder* SearchLayerUnderPoint(BPoint pt); + WinBorder* SearchWinBorder(BPoint pt); void Invalidate(); void SetLocalSpace(const uint32 colorspace);