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:
Vlad Zahorodnii 2022-07-11 14:18:58 +03:00
parent c442f582a3
commit 8f18dc5b7d

View file

@ -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)