From 270b7f58b6c6f0df7c31611f19a20751da9db2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 19 Dec 2005 21:18:23 +0000 Subject: [PATCH] removed unnecessary locks git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15595 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Desktop.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/servers/app/Desktop.cpp b/src/servers/app/Desktop.cpp index 0d02a5e73e..9a30fcb702 100644 --- a/src/servers/app/Desktop.cpp +++ b/src/servers/app/Desktop.cpp @@ -1230,16 +1230,12 @@ Desktop::MoveWindowBy(WindowLayer* window, float x, float y) // moved into the dirty region (for now) newDirtyRegion.Include(&window->VisibleRegion()); - if (GetDrawingEngine()->Lock()) { - GetDrawingEngine()->CopyRegion(©Region, x, y); + GetDrawingEngine()->CopyRegion(©Region, x, y); - // in the dirty region, exclude the parts that we - // could move by blitting - copyRegion.OffsetBy(x, y); - newDirtyRegion.Exclude(©Region); - - GetDrawingEngine()->Unlock(); - } + // in the dirty region, exclude the parts that we + // could move by blitting + copyRegion.OffsetBy(x, y); + newDirtyRegion.Exclude(©Region); MarkDirty(newDirtyRegion); _SetBackground(background);