Cursor is initially displayed at the proper position
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2808 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -104,10 +104,11 @@ FrameBuffer::FrameBuffer(const char *title, uint32 space, status_t *st,bool debu
|
|||||||
mousepos.Set(0,0);
|
mousepos.Set(0,0);
|
||||||
buttons=0;
|
buttons=0;
|
||||||
|
|
||||||
#ifdef ENABLE_INPUT_SERVER_EMULATION
|
|
||||||
// View exists to poll for the mouse
|
// View exists to poll for the mouse
|
||||||
view=new BView(Bounds(),"view",0,0);
|
view=new BView(Bounds(),"view",0,0);
|
||||||
AddChild(view);
|
AddChild(view);
|
||||||
|
view->GetMouse(&mousepos,&buttons);
|
||||||
|
#ifdef ENABLE_INPUT_SERVER_EMULATION
|
||||||
monitor_thread=spawn_thread(MouseMonitor,"mousemonitor",B_NORMAL_PRIORITY,this);
|
monitor_thread=spawn_thread(MouseMonitor,"mousemonitor",B_NORMAL_PRIORITY,this);
|
||||||
resume_thread(monitor_thread);
|
resume_thread(monitor_thread);
|
||||||
#endif
|
#endif
|
||||||
@@ -454,6 +455,9 @@ int32 FrameBuffer::MouseMonitor(void *data)
|
|||||||
|
|
||||||
fb->Lock();
|
fb->Lock();
|
||||||
PortLink *link=new PortLink(fb->serverlink->GetPort());
|
PortLink *link=new PortLink(fb->serverlink->GetPort());
|
||||||
|
fb->view->GetMouse(&mousepos,&buttons);
|
||||||
|
oldpos=mousepos;
|
||||||
|
oldbuttons=buttons;
|
||||||
fb->Unlock();
|
fb->Unlock();
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user