Commit 5f745274 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

do not move window when we are over a menu button

parent f8629336
......@@ -796,6 +796,11 @@ void dtkWidgetsMenuBar::mousePressEvent(QMouseEvent *event)
void dtkWidgetsMenuBar::mouseMoveEvent(QMouseEvent *event)
{
// do not move window when we are over a menu button
if ((event->pos().y() < ((::size + ::margin) * this->size())) ||
(event->pos().y() > d->c->size().height() - (::size + ::margin)))
return;
d->c_pos = event->globalPos();
d->d_pos = d->c_pos - d->o_pos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment