diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index 4b89a37afa..7c61eba49e 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -671,31 +671,6 @@ MainWin::MessageReceived(BMessage *msg) void MainWin::WindowActivated(bool active) { - if (active) { - BScreen screen(this); - BRect screenFrame = screen.Frame(); - BRect frame = Frame(); - float diffX = 0.0; - float diffY = 0.0; - - // If the frame is off the edge of the screen at all - // we will move it so all the window is on the screen. - if (frame.right > screenFrame.right) - // Move left - diffX = screenFrame.right - frame.right; - if (frame.bottom > screenFrame.bottom) - // Move up - diffY = screenFrame.bottom - frame.bottom; - if (frame.left < screenFrame.left) - // Move right - diffX = screenFrame.left - frame.left; - if (frame.top < screenFrame.top) - // Move down - diffY = screenFrame.top - frame.top; - - MoveBy(diffX, diffY); - } - fController->PlayerActivated(active); }