summaryrefslogtreecommitdiff
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-14 20:46:32 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-10-14 20:46:32 +0100
commit34cd8b125ad9f03ababd7789ebe12eac69e23227 (patch)
tree5595368acdc5d1612c276350bf430a79667fe6dc /src/Window.hpp
parentb0544dbfffb79e1aa043c7626fbcbc86b8ee9379 (diff)
rework focus system to be more safe and faster
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
index e0fa7ffa..5b2b201f 100644
--- a/src/Window.hpp
+++ b/src/Window.hpp
@@ -118,9 +118,6 @@ public:
Vector2D m_vOriginalClosedPos; // these will be used for calculations later on in
Vector2D m_vOriginalClosedSize; // drawing the closing animations
- // For hidden windows and stuff
- bool m_bHidden = false;
-
// For pinned (sticky) windows
bool m_bPinned = false;
@@ -172,4 +169,12 @@ public:
void updateSurfaceOutputs();
void moveToWorkspace(int);
CWindow* X11TransientFor();
+ void onUnmap();
+ void setHidden(bool hidden);
+ bool isHidden();
+
+private:
+ // For hidden windows and stuff
+ bool m_bHidden = false;
+
};