* Bug fix in FDialog (use GlobalPos to move)
* Don't check mouse click position on titlebar again while FDialog is in move
This commit is contained in:
parent
5fd38b0496
commit
b7a0dadd7b
|
@ -1,3 +1,8 @@
|
|||
2015-08-08 Markus Gans <guru.mail@muenster.de>
|
||||
* Bug fix in FDialog (use GlobalPos to move)
|
||||
* Don't check mouse click position on titlebar again
|
||||
while FDialog is in move
|
||||
|
||||
2015-07-26 Markus Gans <guru.mail@muenster.de>
|
||||
* init() method for the FStatusKey constructor
|
||||
to avoid code duplication
|
||||
|
|
|
@ -504,15 +504,9 @@ void FDialog::onMouseUp (FMouseEvent* event)
|
|||
//----------------------------------------------------------------------
|
||||
void FDialog::onMouseMove (FMouseEvent* event)
|
||||
{
|
||||
int titlebar_x = TitleBarClickPos.getX();
|
||||
int titlebar_y = TitleBarClickPos.getY();
|
||||
|
||||
if ( event->getButton() == LeftButton )
|
||||
{
|
||||
if ( ! TitleBarClickPos.isNull()
|
||||
&& titlebar_x >= xpos+xmin+3
|
||||
&& titlebar_x <= xpos+xmin-1+width
|
||||
&& titlebar_y == ypos+ymin-1 )
|
||||
if ( ! TitleBarClickPos.isNull() )
|
||||
{
|
||||
FPoint currentPos(getGeometry().getX(), getGeometry().getY());
|
||||
FPoint deltaPos = event->getGlobalPos() - TitleBarClickPos;
|
||||
|
@ -693,7 +687,7 @@ void FDialog::move (int x, int y)
|
|||
xpos = x;
|
||||
ypos = y;
|
||||
|
||||
putArea (x, y, vwin);
|
||||
putArea (getGlobalPos(), vwin);
|
||||
|
||||
if ( getGeometry().overlap(oldGeometry) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue