Skip to content

Commit 552c6ed

Browse files
committed
Use wlr_output's schedule_frame do schedule render
1 parent 67a8954 commit 552c6ed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/qtquick/woutputhelper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class Q_DECL_HIDDEN WOutputHelperPrivate : public WObjectPrivate
8787

8888
inline void update() {
8989
setContentIsDirty(true);
90+
qwoutput()->schedule_frame();
9091
}
9192

9293
W_DECLARE_PUBLIC(WOutputHelper)

src/server/qtquick/woutputrenderwindow.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,8 +1848,7 @@ void WOutputRenderWindow::update()
18481848
{
18491849
Q_D(WOutputRenderWindow);
18501850
for (auto o : std::as_const(d->outputs))
1851-
o->update(); // make contents to dirty
1852-
d->scheduleDoRender();
1851+
o->update(); // will scheduleDoRender
18531852
}
18541853

18551854
void WOutputRenderWindow::update(WOutputViewport *output)

0 commit comments

Comments
 (0)