From 34cd8b125ad9f03ababd7789ebe12eac69e23227 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 14 Oct 2022 20:46:32 +0100 Subject: rework focus system to be more safe and faster --- src/Window.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/Window.hpp') 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; + }; -- cgit v1.2.3