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 Server
Commits
cccc77f7
Commit
cccc77f7
authored
Jul 28, 2020
by
Xaver Hugl
Browse files
Makes the panelAutoHideHideCallback also handle panels set to "windows can cover"
parent
5c2631ab
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server/plasmashell_interface.cpp
View file @
cccc77f7
...
...
@@ -273,7 +273,7 @@ void PlasmaShellSurfaceInterface::Private::panelAutoHideHideCallback(wl_client *
{
auto
s
=
cast
<
Private
>
(
resource
);
Q_ASSERT
(
client
==
*
s
->
client
);
if
(
s
->
m_role
!=
Role
::
Panel
||
s
->
m_panelBehavior
!=
PanelBehavior
::
AutoHide
)
{
if
(
s
->
m_role
!=
Role
::
Panel
||
(
s
->
m_panelBehavior
!=
PanelBehavior
::
AutoHide
&&
s
->
m_panelBehavior
!=
PanelBehavior
::
WindowsCanCover
)
)
{
wl_resource_post_error
(
s
->
resource
,
ORG_KDE_PLASMA_SURFACE_ERROR_PANEL_NOT_AUTO_HIDE
,
"Not an auto hide panel"
);
return
;
}
...
...
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