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:
@@ -660,7 +660,7 @@ void
|
|||||||
MainWin::WindowActivated(bool active)
|
MainWin::WindowActivated(bool active)
|
||||||
{
|
{
|
||||||
if (active) {
|
if (active) {
|
||||||
BScreen screen;
|
BScreen screen(this);
|
||||||
BRect screenFrame = screen.Frame();
|
BRect screenFrame = screen.Frame();
|
||||||
BRect frame = Frame();
|
BRect frame = Frame();
|
||||||
float diffX = 0.0;
|
float diffX = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user