Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/desktopgrid.cpp
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | 194 | if (view->effectWindow) { | |||
---|---|---|---|---|---|
197 | effects->drawWindow(view->effectWindow, PAINT_WINDOW_TRANSLUCENT, infiniteRegion(), d); | 197 | effects->drawWindow(view->effectWindow, PAINT_WINDOW_TRANSLUCENT, infiniteRegion(), d); | ||
198 | } | 198 | } | ||
199 | } | 199 | } | ||
200 | 200 | | |||
201 | if (isUsingPresentWindows() && windowMove && wasWindowMove) { | 201 | if (isUsingPresentWindows() && windowMove && wasWindowMove) { | ||
202 | // the moving window has to be painted on top of all desktops | 202 | // the moving window has to be painted on top of all desktops | ||
203 | QPoint diff = cursorPos() - m_windowMoveStartPoint; | 203 | QPoint diff = cursorPos() - m_windowMoveStartPoint; | ||
204 | QRect geo = m_windowMoveGeometry.translated(diff); | 204 | QRect geo = m_windowMoveGeometry.translated(diff); | ||
205 | WindowPaintData d(windowMove); | 205 | WindowPaintData d(windowMove, data.projectionMatrix()); | ||
206 | d *= QVector2D((qreal)geo.width() / (qreal)windowMove->width(), (qreal)geo.height() / (qreal)windowMove->height()); | 206 | d *= QVector2D((qreal)geo.width() / (qreal)windowMove->width(), (qreal)geo.height() / (qreal)windowMove->height()); | ||
207 | d += QPoint(geo.left() - windowMove->x(), geo.top() - windowMove->y()); | 207 | d += QPoint(geo.left() - windowMove->x(), geo.top() - windowMove->y()); | ||
208 | effects->drawWindow(windowMove, PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, infiniteRegion(), d); | 208 | effects->drawWindow(windowMove, PAINT_WINDOW_TRANSFORMED | PAINT_WINDOW_LANCZOS, infiniteRegion(), d); | ||
209 | } | 209 | } | ||
210 | 210 | | |||
211 | if (desktopNameAlignment) { | 211 | if (desktopNameAlignment) { | ||
212 | for (int screen = 0; screen < effects->numScreens(); screen++) { | 212 | for (int screen = 0; screen < effects->numScreens(); screen++) { | ||
213 | QRect screenGeom = effects->clientArea(ScreenArea, screen, 0); | 213 | QRect screenGeom = effects->clientArea(ScreenArea, screen, 0); | ||
▲ Show 20 Lines • Show All 1258 Lines • Show Last 20 Lines |