Make Item::repaints() not guess repaints
The guessed repaint region is not optimal on wayland. Second, if it's a new output, it's expected that there will be already a scene repaint that covers all items on the given output so items don't need to provide redundant repaint region.
This commit is contained in:
parent
c442f582a3
commit
8f18dc5b7d
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@
|
|||
#include "platform.h"
|
||||
#include "renderloop.h"
|
||||
#include "scene.h"
|
||||
#include "screens.h"
|
||||
#include "utils/common.h"
|
||||
|
||||
namespace KWin
|
||||
|
@ -350,7 +349,7 @@ WindowQuadList Item::quads() const
|
|||
|
||||
QRegion Item::repaints(Output *output) const
|
||||
{
|
||||
return m_repaints.value(output, QRect(QPoint(0, 0), screens()->size()));
|
||||
return m_repaints.value(output);
|
||||
}
|
||||
|
||||
void Item::resetRepaints(Output *output)
|
||||
|
|
Loading…
Reference in a new issue