Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Phone Components
Commits
834812e5
Commit
834812e5
authored
Sep 14, 2017
by
Marco Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set plasma surface every time
parent
41b47044
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
containments/taskpanel/package/contents/ui/main.qml
containments/taskpanel/package/contents/ui/main.qml
+0
-1
containments/taskpanel/taskpanel.cpp
containments/taskpanel/taskpanel.cpp
+15
-2
containments/taskpanel/taskpanel.h
containments/taskpanel/taskpanel.h
+1
-0
No files found.
containments/taskpanel/package/contents/ui/main.qml
View file @
834812e5
...
...
@@ -70,7 +70,6 @@ PlasmaCore.ColorScope {
if
(
taskSwitcher
.
visibility
==
Window
.
Hidden
&&
taskSwitcher
.
offset
>
-
taskSwitcher
.
height
+
units
.
gridUnit
&&
taskSwitcher
.
tasksCount
)
{
taskSwitcher
.
visible
=
true
;
}
plasmoid
.
nativeInterface
.
showDesktop
=
true
;
}
onReleased
:
{
if
(
!
isDragging
)
{
...
...
containments/taskpanel/taskpanel.cpp
View file @
834812e5
...
...
@@ -119,15 +119,28 @@ QWindow *TaskPanel::panel()
void
TaskPanel
::
setPanel
(
QWindow
*
panel
)
{
using
namespace
KWayland
::
Client
;
if
(
panel
==
m_panel
)
{
return
;
}
if
(
m_panel
)
{
disconnect
(
m_panel
,
&
QWindow
::
visibilityChanged
,
this
,
&
TaskPanel
::
updatePanelVisibility
);
}
m_panel
=
panel
;
connect
(
m_panel
,
&
QWindow
::
visibilityChanged
,
this
,
&
TaskPanel
::
updatePanelVisibility
,
Qt
::
QueuedConnection
);
emit
panelChanged
();
updatePanelVisibility
();
}
void
TaskPanel
::
updatePanelVisibility
()
{
using
namespace
KWayland
::
Client
;
if
(
!
m_panel
->
isVisible
())
{
return
;
}
Surface
*
s
=
Surface
::
fromWindow
(
m_panel
);
Surface
*
s
=
Surface
::
fromWindow
(
panel
);
if
(
!
s
)
{
return
;
}
...
...
containments/taskpanel/taskpanel.h
View file @
834812e5
...
...
@@ -72,6 +72,7 @@ Q_SIGNALS:
private:
void
initWayland
();
void
updateActiveWindow
();
void
updatePanelVisibility
();
bool
m_showingDesktop
;
QWindow
*
m_panel
=
nullptr
;
KWayland
::
Client
::
PlasmaShellSurface
*
m_shellSurface
=
nullptr
;
...
...
Write
Preview
Markdown
is supported
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