Future proofing, make sure we get the screen this window is in.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25267 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood
2008-04-29 23:55:55 +00:00
parent 9981c81f8b
commit 85a4868f71
+1 -1
View File
@@ -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;