mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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:
parent
f5fe96fd2d
commit
8833e61127
@ -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;
|
||||
|
||||
|
@ -59,7 +59,7 @@ nsScreenPh :: nsScreenPh ( ) {
|
||||
PhQueryRids( 0, 0, inp_grp, Ph_INPUTGROUP_REGION, 0, 0, 0, &rid, 1 );
|
||||
PhRegionQuery( rid, ®ion, &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;
|
||||
|
||||
|
@ -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;\
|
||||
} \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user