mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-23 10:03:43 +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:
parent
43d91c9b63
commit
c9c61818a4
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user