Changeset View
Changeset View
Standalone View
Standalone View
toplevel.cpp
Show First 20 Lines • Show All 402 Lines • ▼ Show 20 Line(s) | 397 | if (count > 1 && count < 16) { | |||
---|---|---|---|---|---|
403 | for (int i = 0; i < count; i++) | 403 | for (int i = 0; i < count; i++) | ||
404 | qrects << QRect(rects[i].x, rects[i].y, rects[i].width, rects[i].height); | 404 | qrects << QRect(rects[i].x, rects[i].y, rects[i].width, rects[i].height); | ||
405 | 405 | | |||
406 | region.setRects(qrects.constData(), count); | 406 | region.setRects(qrects.constData(), count); | ||
407 | } else | 407 | } else | ||
408 | region += QRect(reply->extents.x, reply->extents.y, | 408 | region += QRect(reply->extents.x, reply->extents.y, | ||
409 | reply->extents.width, reply->extents.height); | 409 | reply->extents.width, reply->extents.height); | ||
410 | 410 | | |||
411 | const QRect bufferRect = bufferGeometry(); | ||||
412 | const QRect frameRect = frameGeometry(); | ||||
413 | | ||||
411 | damage_region += region; | 414 | damage_region += region; | ||
412 | repaints_region += region; | 415 | repaints_region += region.translated(bufferRect.topLeft() - frameRect.topLeft()); | ||
413 | 416 | | |||
414 | free(reply); | 417 | free(reply); | ||
415 | } | 418 | } | ||
416 | 419 | | |||
417 | void Toplevel::addDamageFull() | 420 | void Toplevel::addDamageFull() | ||
418 | { | 421 | { | ||
419 | if (!compositing()) | 422 | if (!compositing()) | ||
420 | return; | 423 | return; | ||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |