implemented BInputServerFilter::GetScreenRegion. Tested with R5 screen_saver filter successfully.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9225 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -165,7 +165,8 @@ public:
|
|||||||
static BLocker gInputMethodListLocker;
|
static BLocker gInputMethodListLocker;
|
||||||
|
|
||||||
static DeviceManager gDeviceManager;
|
static DeviceManager gDeviceManager;
|
||||||
|
|
||||||
|
BRect& ScreenFrame() { return fFrame;};
|
||||||
private:
|
private:
|
||||||
status_t LoadKeymap();
|
status_t LoadKeymap();
|
||||||
status_t LoadSystemKeymap();
|
status_t LoadSystemKeymap();
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#include <Region.h>
|
||||||
#include <InputServerFilter.h>
|
#include <InputServerFilter.h>
|
||||||
#include "InputServer.h"
|
#include "InputServer.h"
|
||||||
|
|
||||||
@@ -61,7 +62,7 @@ status_t
|
|||||||
BInputServerFilter::InitCheck()
|
BInputServerFilter::InitCheck()
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -74,7 +75,7 @@ BInputServerFilter::Filter(BMessage *message,
|
|||||||
BList *outList)
|
BList *outList)
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
return B_DISPATCH_MESSAGE;
|
return B_DISPATCH_MESSAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -85,9 +86,11 @@ BInputServerFilter::Filter(BMessage *message,
|
|||||||
status_t
|
status_t
|
||||||
BInputServerFilter::GetScreenRegion(BRegion *region) const
|
BInputServerFilter::GetScreenRegion(BRegion *region) const
|
||||||
{
|
{
|
||||||
status_t dummy;
|
if (!region)
|
||||||
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
return dummy;
|
*region = BRegion(((InputServer*)be_app)->ScreenFrame());
|
||||||
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user