Change for qnx(photon) platform only. It should not affect runtime/buildig other platforms.

Temporary fix until PR:22930 is fixed in libph. The library insist in making any PtRegion widget
sensitive and opaque to key events. Thi shappen if after realizing it, a resource ( like
Pt_ARG_POS or Pt_ARG_DIM ) is set. Such a region will completely block any key events from reaching
any application, if the mouse is in top of it. To test open the url bar, place the mouse in top
of the list and type something. The key events are not reaching anybody.
This commit is contained in:
amardare%qnx.com 2004-12-09 14:53:27 +00:00
parent b76fa9c2de
commit 1ff4a395f8

View File

@ -594,6 +594,9 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
if( aRepaint == PR_FALSE ) PtStartFlux(mWidget);
PtSetResource( mWidget, Pt_ARG_DIM, &dim, 0 );
if( aRepaint == PR_FALSE ) PtEndFlux(mWidget);
/* ATENTIE Remove when wojtek fixes PR:22930 in the photon library */
if( PtWidgetClass( mWidget ) == PtRegion ) PtSetResource( mWidget, Pt_ARG_REGION_OPAQUE, 0, Ph_EV_KEY );
}
if( mIsToplevel || mListenForResizes ) {
@ -888,6 +891,9 @@ NS_METHOD nsWindow::Move( PRInt32 aX, PRInt32 aY ) {
if(( mWidget->area.pos.x != aX ) || ( mWidget->area.pos.y != aY )) {
PhPoint_t pos = { aX, aY };
PtSetResource( mWidget, Pt_ARG_POS, &pos, 0 );
/* ATENTIE Remove when wojtek fixes PR:22930 in the photon library */
if( PtWidgetClass( mWidget ) == PtRegion ) PtSetResource( mWidget, Pt_ARG_REGION_OPAQUE, 0, Ph_EV_KEY );
}
}