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
db3f2733
Commit
db3f2733
authored
Apr 12, 2022
by
Xaver Hugl
Browse files
effects/kscreen: don't use xcb on Wayland
BUG: 450564
FIXED-IN: 5.24.5
parent
adb46cbf
Pipeline
#163147
passed with stage
in 12 minutes and 36 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/effects/kscreen/kscreen.cpp
View file @
db3f2733
...
...
@@ -44,13 +44,15 @@ namespace KWin
KscreenEffect
::
KscreenEffect
()
:
Effect
()
,
m_atom
(
effects
->
announceSupportProperty
(
"_KDE_KWIN_KSCREEN_SUPPORT"
,
this
))
,
m_atom
(
effects
->
waylandDisplay
()
?
XCB_ATOM_NONE
:
effects
->
announceSupportProperty
(
"_KDE_KWIN_KSCREEN_SUPPORT"
,
this
))
{
initConfig
<
KscreenConfig
>
();
connect
(
effects
,
&
EffectsHandler
::
propertyNotify
,
this
,
&
KscreenEffect
::
propertyNotify
);
connect
(
effects
,
&
EffectsHandler
::
xcbConnectionChanged
,
this
,
[
this
]()
{
m_atom
=
effects
->
announceSupportProperty
(
QByteArrayLiteral
(
"_KDE_KWIN_KSCREEN_SUPPORT"
),
this
);
});
if
(
!
effects
->
waylandDisplay
())
{
connect
(
effects
,
&
EffectsHandler
::
propertyNotify
,
this
,
&
KscreenEffect
::
propertyNotify
);
connect
(
effects
,
&
EffectsHandler
::
xcbConnectionChanged
,
this
,
[
this
]()
{
m_atom
=
effects
->
announceSupportProperty
(
QByteArrayLiteral
(
"_KDE_KWIN_KSCREEN_SUPPORT"
),
this
);
});
}
reconfigure
(
ReconfigureAll
);
const
QList
<
EffectScreen
*>
screens
=
effects
->
screens
();
...
...
Xaver Hugl
@zamundaaa
mentioned in commit
7a26f93c
·
Apr 12, 2022
mentioned in commit
7a26f93c
mentioned in commit 7a26f93cb579cf6b1cbc1e32790f93be70013157
Toggle commit list
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