Enabled titlebar dragging by shift-clicking it.

Still missing is the automatic titlebar unhiding.

svn path=/trunk/kdebase/kwin/; revision=260075
icc-effect-5.14.5
Luciano Montanaro 2003-10-19 09:16:11 +00:00
parent c2eacac63f
commit eaeb27fd13
2 changed files with 3 additions and 7 deletions

View File

@ -1211,7 +1211,6 @@ void B2Titlebar::mouseDoubleClickEvent( QMouseEvent * )
client->titlebarDblClickOperation();
}
#if 0
void B2Titlebar::mousePressEvent( QMouseEvent * e )
{
shift_move = e->state() & ShiftButton;
@ -1219,7 +1218,6 @@ void B2Titlebar::mousePressEvent( QMouseEvent * e )
moveOffset = e->globalPos();
} else {
client->processMousePressEvent(e);
// client->performWindowOperation(KDecoration::MoveOp);
}
}
@ -1237,12 +1235,12 @@ void B2Titlebar::mouseMoveEvent( QMouseEvent * e )
if (oldx >= 0 && oldx <= rect().right()) {
client->titleMoveRel(xdiff);
}
} else {
e->ignore();
}
}
#endif
}
} // namespace B2
#include "b2client.moc"

View File

@ -68,11 +68,9 @@ protected:
void paintEvent( QPaintEvent* );
bool x11Event(XEvent *e);
void mouseDoubleClickEvent( QMouseEvent * );
#if 0
void mousePressEvent( QMouseEvent * );
void mouseReleaseEvent( QMouseEvent * );
void mouseMoveEvent(QMouseEvent *);
#endif
void resizeEvent(QResizeEvent *ev);
private:
void drawTitlebar(QPainter &p, bool state);