Commit 8f18dc5b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent c442f582
Pipeline #202746 passed with stage
in 23 minutes and 24 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment