Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 3248 Lines • ▼ Show 20 Line(s) | 3242 | { | |||
---|---|---|---|---|---|
3249 | } | 3249 | } | ||
3250 | m_electricMode = mode; | 3250 | m_electricMode = mode; | ||
3251 | } | 3251 | } | ||
3252 | 3252 | | |||
3253 | void AbstractClient::setElectricBorderMaximizing(bool maximizing) | 3253 | void AbstractClient::setElectricBorderMaximizing(bool maximizing) | ||
3254 | { | 3254 | { | ||
3255 | m_electricMaximizing = maximizing; | 3255 | m_electricMaximizing = maximizing; | ||
3256 | if (maximizing) | 3256 | if (maximizing) | ||
3257 | outline()->show(electricBorderMaximizeGeometry(Cursor::pos(), desktop())); | 3257 | outline()->show(electricBorderMaximizeGeometry(Cursor::pos(), desktop()), moveResizeGeometry()); | ||
graesslin: I'm not sure whether geometry() always provides the correct geometry you want to have. I think… | |||||
3258 | else | 3258 | else | ||
3259 | outline()->hide(); | 3259 | outline()->hide(); | ||
3260 | elevate(maximizing); | 3260 | elevate(maximizing); | ||
3261 | } | 3261 | } | ||
3262 | 3262 | | |||
3263 | QRect AbstractClient::electricBorderMaximizeGeometry(QPoint pos, int desktop) | 3263 | QRect AbstractClient::electricBorderMaximizeGeometry(QPoint pos, int desktop) | ||
3264 | { | 3264 | { | ||
3265 | if (electricBorderMode() == QuickTileMaximize) { | 3265 | if (electricBorderMode() == QuickTileMaximize) { | ||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |
I'm not sure whether geometry() always provides the correct geometry you want to have. I think moveResizeGeometry() would be the better choice here.