set input mask properly for hidden sidebars

--do not enable any input mask for hidden sidebars
work/spdx
Michail Vourlakos 4 years ago
parent 2fd5a5a6a2
commit f2dda7347c

@ -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:

@ -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;
}
}

Loading…
Cancel
Save