always use all the borders for floating dialogs

This commit is contained in:
Marco Martin 2014-04-23 20:57:52 +02:00
parent 1e5524525f
commit fc98e6323b

View File

@ -130,7 +130,8 @@ void DialogPrivate::syncBorders()
int borders = Plasma::FrameSvg::AllBorders;
//Tooltips always have all the borders
if (!(q->flags() & Qt::ToolTip)) {
// floating windows have all borders
if (!(q->flags() & Qt::ToolTip) || location == Plasma::Types::Floating) {
if (q->x() <= avail.x() || location == Plasma::Types::LeftEdge) {
borders = borders & ~Plasma::FrameSvg::LeftBorder;
}