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
a011fe74
Commit
a011fe74
authored
Dec 31, 2021
by
Xaver Hugl
Browse files
linuxdmabuf: fix sending default tranches
Only the first one was getting sent
parent
afc2a1c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/linuxdmabufv1clientbuffer.cpp
View file @
a011fe74
...
...
@@ -491,8 +491,11 @@ void LinuxDmaBufV1FeedbackPrivate::send(Resource *resource)
sendTranche
(
tranche
);
}
// send default hints as the last fallback tranche
if
(
this
!=
get
(
m_bufferintegration
->
defaultFeedback
.
data
()))
{
sendTranche
(
get
(
m_bufferintegration
->
defaultFeedback
.
data
())
->
m_tranches
[
0
]);
const
auto
defaultFeedbackPrivate
=
get
(
m_bufferintegration
->
defaultFeedback
.
data
());
if
(
this
!=
defaultFeedbackPrivate
)
{
for
(
const
auto
&
tranche
:
qAsConst
(
defaultFeedbackPrivate
->
m_tranches
))
{
sendTranche
(
tranche
);
}
}
send_done
(
resource
->
handle
);
}
...
...
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