1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-03 09:47:22 +03:00

set input mask properly for hidden sidebars

--do not enable any input mask for hidden sidebars
This commit is contained in:
Michail Vourlakos 2021-05-21 16:44:55 +03:00
parent 2fd5a5a6a2
commit f2dda7347c
2 changed files with 7 additions and 1 deletions

View File

@ -116,7 +116,6 @@ public:
void setTimerHide(int msec);
bool hasBlockHidingEvent(const QString &type);
bool isSidebar() const;
//! KWin Edges Support functions
bool enableKWinEdges() const;
@ -141,6 +140,8 @@ public slots:
Q_INVOKABLE void addBlockHidingEvent(const QString &type);
Q_INVOKABLE void removeBlockHidingEvent(const QString &type);
Q_INVOKABLE bool isSidebar() const;
void initViewFlags();
signals:

View File

@ -377,6 +377,11 @@ Item{
inputGeometry.width = Math.min(inputGeometry.width, latteView.width);
inputGeometry.height = Math.min(inputGeometry.height, latteView.height);
if (latteView.visibility.isSidebar() && latteView.visibility.isHidden) {
//! this way we make sure than no input is accepted anywhere
inputGeometry = Qt.rect(-1, -1, 1, 1);
}
latteView.effects.inputMask = inputGeometry;
}
}