On Mon, Jun 18, 2007 at 04:22:09PM +0200, Leuven, E. wrote:
> +     /* i didn't find a smarter way to find out
> +      * whether a move was made by the user
> +      * because we also move the widget ourselves
> +      * to make it popup in the right position...
> +      */
> +     switch (event->type()) {
> +             case QEvent::WindowActivate:
> +                     active_ = true;
> +             case QEvent::WindowDeactivate:
> +                     active_ = false;

So active_ == false in both cases? (missing 'break'?)

> +             case QEvent::Move:
> +                     if (active_)
> +                             detached_ = true;
>       }

Andre'

Reply via email to