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:
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…
x
Reference in New Issue
Block a user