diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index 5c3626effe..fc852b62b0 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -660,7 +660,7 @@ void MainWin::WindowActivated(bool active) { if (active) { - BScreen screen; + BScreen screen(this); BRect screenFrame = screen.Frame(); BRect frame = Frame(); float diffX = 0.0;