From ccce07004587a96d60f1a2ab782593acb8a784e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 12 Apr 2005 18:51:03 +0000 Subject: [PATCH] As Haiku BScreen::Frame() doesn't work in our current state, we use a fake Frame input_server now sends well filled BMessages in Haiku git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12350 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/input/InputServer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/servers/input/InputServer.cpp b/src/servers/input/InputServer.cpp index 9805d7cdf8..9efdb116d3 100644 --- a/src/servers/input/InputServer.cpp +++ b/src/servers/input/InputServer.cpp @@ -246,6 +246,8 @@ InputServer::InitKeyboardMouseStates(void) // fMousePos is then set to the center of the screen. fFrame = fScreen.Frame(); + if (fFrame == BRect(0,0,0,0)) + fFrame = BRect(0,0,800,600); fMousePos = BPoint(fFrame.right/2, fFrame.bottom/2); if (LoadKeymap()!=B_OK)