Enabled titlebar dragging by shift-clicking it.
Still missing is the automatic titlebar unhiding. svn path=/trunk/kdebase/kwin/; revision=260075icc-effect-5.14.5
parent
c2eacac63f
commit
eaeb27fd13
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue