[Plib-cvs] plib/src/pui pu.cxx,1.68,1.69
Brought to you by:
sjbaker
From: John F. F. <fa...@us...> - 2005-05-23 21:24:38
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26389 Modified Files: pu.cxx Log Message: Deactivating the active widget before activating the next widget Index: pu.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.cxx,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- pu.cxx 6 May 2005 18:46:28 -0000 1.68 +++ pu.cxx 23 May 2005 21:24:26 -0000 1.69 @@ -362,14 +362,10 @@ pu_mouse_x = x ; pu_mouse_y = h - y ; - int return_value = puGetBaseLiveInterface () -> checkHit ( button, - updown, pu_mouse_x, pu_mouse_y ) ; - - puCleanUpJunk () ; puObject *active = puActiveWidget () ; - if ( ( last_buttons == 0 ) && ( active != NULL ) ) + if ( ( last_buttons != 0 ) && ( active != NULL ) ) { int x_offset, y_offset ; active -> getAbsolutePosition ( &x_offset, &y_offset ) ; @@ -385,6 +381,11 @@ } } + int return_value = puGetBaseLiveInterface () -> checkHit ( button, + updown, pu_mouse_x, pu_mouse_y ) ; + + puCleanUpJunk () ; + return return_value ; } |