|
|
|
@ -61,6 +61,7 @@ class VisibilityManager : public QObject
|
|
|
|
|
Q_PROPERTY(bool isHidden READ isHidden WRITE setIsHidden NOTIFY isHiddenChanged)
|
|
|
|
|
Q_PROPERTY(bool isShownFully READ isShownFully WRITE setIsShownFully NOTIFY isShownFullyChanged)
|
|
|
|
|
Q_PROPERTY(bool isBelowLayer READ isBelowLayer NOTIFY isBelowLayerChanged)
|
|
|
|
|
Q_PROPERTY(bool isSidebar READ isSidebar NOTIFY isSidebarChanged)
|
|
|
|
|
Q_PROPERTY(bool containsMouse READ containsMouse NOTIFY containsMouseChanged)
|
|
|
|
|
|
|
|
|
|
//! Floating Gap Window to identify mouse between the screenEdge and the view when it does not accept any other
|
|
|
|
@ -115,6 +116,7 @@ public:
|
|
|
|
|
int timerHide() const;
|
|
|
|
|
void setTimerHide(int msec);
|
|
|
|
|
|
|
|
|
|
bool isSidebar() const;
|
|
|
|
|
bool hasBlockHidingEvent(const QString &type);
|
|
|
|
|
|
|
|
|
|
//! KWin Edges Support functions
|
|
|
|
@ -140,8 +142,6 @@ public slots:
|
|
|
|
|
Q_INVOKABLE void addBlockHidingEvent(const QString &type);
|
|
|
|
|
Q_INVOKABLE void removeBlockHidingEvent(const QString &type);
|
|
|
|
|
|
|
|
|
|
Q_INVOKABLE bool isSidebar() const;
|
|
|
|
|
|
|
|
|
|
void initViewFlags();
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
@ -158,6 +158,7 @@ signals:
|
|
|
|
|
void isBelowLayerChanged();
|
|
|
|
|
void isFloatingGapWindowEnabledChanged();
|
|
|
|
|
void isHiddenChanged();
|
|
|
|
|
void isSidebarChanged();
|
|
|
|
|
void isShownFullyChanged();
|
|
|
|
|
void hidingIsBlockedChanged();
|
|
|
|
|
void containsMouseChanged();
|
|
|
|
@ -184,6 +185,8 @@ private slots:
|
|
|
|
|
//! KWin Edges Support functions
|
|
|
|
|
void updateKWinEdgesSupport();
|
|
|
|
|
|
|
|
|
|
void updateSidebarState();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void setContainsMouse(bool contains);
|
|
|
|
|
|
|
|
|
@ -233,6 +236,7 @@ private:
|
|
|
|
|
bool m_isBelowLayer{false};
|
|
|
|
|
bool m_isHidden{false};
|
|
|
|
|
bool m_isFloatingGapWindowEnabled{false};
|
|
|
|
|
bool m_isSidebar{false};
|
|
|
|
|
bool m_isShownFully{false};
|
|
|
|
|
bool m_dragEnter{false};
|
|
|
|
|
bool m_containsMouse{false};
|
|
|
|
|