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
b7bd93c5
Commit
b7bd93c5
authored
Jul 28, 2020
by
Xaver Hugl
Browse files
Makes the panelAutoHideHideCallback also handle panels set to "windows can cover"
parent
3407b06c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/plasmashell_interface.cpp
View file @
b7bd93c5
...
...
@@ -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
.
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