Changes for qnx(photon) platform only. They should not affect building/runtime other platforms.

JFehr's problem with thunderbird on screen 2 on a multiscreen configuration:
Use
PhWindowQueryVisible( Ph_QUERY_IG_POINTER, ...
so that the screen information is uses the current location of input_group's pointer.
This commit is contained in:
amardare%qnx.com 2004-08-13 20:07:52 +00:00
parent f5fe96fd2d
commit 8833e61127
3 changed files with 3 additions and 3 deletions

View File

@ -610,7 +610,7 @@ nsresult nsDeviceContextPh :: GetDisplayInfo( PRInt32 &aWidth, PRInt32 &aHeight,
else inp_grp = 1;
PhQueryRids( 0, 0, inp_grp, Ph_GRAFX_REGION, 0, 0, 0, &rid, 1 );
PhWindowQueryVisible( Ph_QUERY_INPUT_GROUP | Ph_QUERY_EXACT, 0, inp_grp, &rect );
PhWindowQueryVisible( Ph_QUERY_IG_POINTER, 0, inp_grp, &rect );
aWidth = rect.lr.x - rect.ul.x + 1;
aHeight = rect.lr.y - rect.ul.y + 1;

View File

@ -59,7 +59,7 @@ nsScreenPh :: nsScreenPh ( ) {
PhQueryRids( 0, 0, inp_grp, Ph_INPUTGROUP_REGION, 0, 0, 0, &rid, 1 );
PhRegionQuery( rid, &region, &rect, NULL, 0 );
inp_grp = region.input_group;
PhWindowQueryVisible( Ph_QUERY_INPUT_GROUP | Ph_QUERY_EXACT, 0, inp_grp, &rect );
PhWindowQueryVisible( Ph_QUERY_IG_POINTER, 0, inp_grp, &rect );
mWidth = rect.lr.x - rect.ul.x + 1;
mHeight = rect.lr.y - rect.ul.y + 1;

View File

@ -82,7 +82,7 @@ static PhRect_t gConsoleRect;
static PRBool gConsoleRectValid = PR_FALSE;
#define QueryVisible( ) {\
if( gConsoleRectValid == PR_FALSE ) { \
PhWindowQueryVisible( Ph_QUERY_GRAPHICS, 0, 1, &gConsoleRect ); \
PhWindowQueryVisible( Ph_QUERY_IG_POINTER, 0, 1, &gConsoleRect ); \
gConsoleRectValid = PR_TRUE;\
} \
}