1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-23 22:03:54 +03:00

force kwinedge for behaveAsPlasmaPanels

--this way we make sure that the user will be
able to trigger showing with mouse at the screen
edge. Using the window mask to succeed in this
in not an option.
This commit is contained in:
Michail Vourlakos 2020-03-19 13:35:31 +02:00
parent 43d91c9b63
commit c9c61818a4
2 changed files with 5 additions and 2 deletions

View File

@ -66,6 +66,7 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view)
if (m_latteView) {
connect(m_latteView, &Latte::View::eventTriggered, this, &VisibilityManager::viewEventManager);
connect(m_latteView, &Latte::View::behaveAsPlasmaPanelChanged , this, &VisibilityManager::updateKWinEdgesSupport);
connect(m_latteView, &Latte::View::byPassWMChanged, this, &VisibilityManager::updateKWinEdgesSupport);
connect(m_latteView, &Latte::View::inEditModeChanged, this, &VisibilityManager::initViewFlags);
@ -832,7 +833,7 @@ void VisibilityManager::updateKWinEdgesSupport()
|| m_mode == Types::DodgeMaximized)
&& !m_latteView->byPassWM()) {
if (m_enableKWinEdgesFromUser) {
if (m_enableKWinEdgesFromUser || m_latteView->behaveAsPlasmaPanel()) {
createEdgeGhostWindow();
if (m_latteView->isFloatingWindow()) {
createFloatingGapWindow();

View File

@ -791,7 +791,9 @@ PlasmaComponents.Page {
text: i18n("Activate KWin edge after hiding")
checked: latteView.visibility.enableKWinEdges
tooltip: i18n("After the view becomes hidden, KWin is informed to track user feedback. For example an edge visual hint is shown whenever the mouse approaches the hidden view")
enabled: !latteView.byPassWM && latteView.visibility.mode !== Latte.Types.SideBar
enabled: !dialog.viewIsPanel
&& !latteView.byPassWM
&& latteView.visibility.mode !== Latte.Types.SideBar
onClicked: {
latteView.visibility.enableKWinEdges = checked;