Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWayland Integration
Commits
3fe87812
Commit
3fe87812
authored
Apr 29, 2021
by
Vlad Zahorodnii
Browse files
Fix compilation with no deprecated build of KWindowSystem
Highlight window and present windows APIs have been deprecated in 5.82.
parent
94b82990
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/windowsystem/windoweffects.cpp
View file @
3fe87812
...
...
@@ -150,31 +150,38 @@ void WindowEffects::slideWindow(WId id, KWindowEffects::SlideFromLocation locati
}
}
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 81)
QList
<
QSize
>
WindowEffects
::
windowSizes
(
const
QList
<
WId
>
&
ids
)
{
Q_UNUSED
(
ids
)
QList
<
QSize
>
sizes
;
return
sizes
;
}
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void
WindowEffects
::
presentWindows
(
WId
controller
,
const
QList
<
WId
>
&
ids
)
{
Q_UNUSED
(
controller
)
Q_UNUSED
(
ids
)
}
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void
WindowEffects
::
presentWindows
(
WId
controller
,
int
desktop
)
{
Q_UNUSED
(
controller
)
Q_UNUSED
(
desktop
)
}
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void
WindowEffects
::
highlightWindows
(
WId
controller
,
const
QList
<
WId
>
&
ids
)
{
Q_UNUSED
(
controller
)
Q_UNUSED
(
ids
)
}
#endif
void
WindowEffects
::
enableBlurBehind
(
WId
winId
,
bool
enable
,
const
QRegion
&
region
)
{
...
...
src/windowsystem/windoweffects.h
View file @
3fe87812
...
...
@@ -37,10 +37,14 @@ public:
bool
isEffectAvailable
(
KWindowEffects
::
Effect
effect
)
override
;
void
slideWindow
(
WId
id
,
KWindowEffects
::
SlideFromLocation
location
,
int
offset
)
override
;
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 81)
QList
<
QSize
>
windowSizes
(
const
QList
<
WId
>
&
ids
)
override
;
#endif
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 82)
void
presentWindows
(
WId
controller
,
const
QList
<
WId
>
&
ids
)
override
;
void
presentWindows
(
WId
controller
,
int
desktop
=
NET
::
OnAllDesktops
)
override
;
void
highlightWindows
(
WId
controller
,
const
QList
<
WId
>
&
ids
)
override
;
#endif
void
enableBlurBehind
(
WId
winId
,
bool
enable
=
true
,
const
QRegion
&
region
=
QRegion
())
override
;
void
enableBlurBehind
(
QWindow
*
window
,
bool
enable
,
const
QRegion
&
region
);
void
enableBackgroundContrast
(
WId
winId
,
bool
enable
=
true
,
qreal
contrast
=
1
,
qreal
intensity
=
1
,
qreal
saturation
=
1
,
const
QRegion
&
region
=
QRegion
())
override
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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