Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
219b1b75
Commit
219b1b75
authored
Nov 04, 2015
by
Martin Flöser
Browse files
[server] Flush client after sending a frameRendered callback
parent
df22d2ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/surface_interface.cpp
View file @
219b1b75
...
...
@@ -173,11 +173,15 @@ void SurfaceInterface::frameRendered(quint32 msec)
{
Q_D
();
// notify all callbacks
const
bool
needsFlush
=
!
d
->
current
.
callbacks
.
isEmpty
();
while
(
!
d
->
current
.
callbacks
.
isEmpty
())
{
wl_resource
*
r
=
d
->
current
.
callbacks
.
takeFirst
();
wl_callback_send_done
(
r
,
msec
);
wl_resource_destroy
(
r
);
}
if
(
needsFlush
)
{
client
()
->
flush
();
}
}
void
SurfaceInterface
::
Private
::
destroy
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment