From 6708f3b1334e8b6a966f424fe04713a4e74d5fdb Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 13 Jul 2022 18:18:23 +0200 Subject: Fixed TTY switching (#364) --- src/Compositor.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Compositor.hpp') diff --git a/src/Compositor.hpp b/src/Compositor.hpp index bc967621..3ea1711a 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -30,7 +30,9 @@ public: // ------------------ WLR BASICS ------------------ // wl_display* m_sWLDisplay; + wl_event_loop* m_sWLEventLoop; wlr_backend* m_sWLRBackend; + wlr_session* m_sWLRSession; wlr_renderer* m_sWLRRenderer; wlr_allocator* m_sWLRAllocator; wlr_compositor* m_sWLRCompositor; @@ -80,7 +82,7 @@ public: std::vector m_vSurfacesFadingOut; void startCompositor(); - void cleanupExit(); + void cleanup(); wlr_surface* m_pLastFocus = nullptr; CWindow* m_pLastWindow = nullptr; @@ -89,6 +91,7 @@ public: SSeat m_sSeat; bool m_bReadyToProcess = false; + bool m_bSessionActive = true; // ------------------------------------------------- // @@ -142,6 +145,7 @@ public: void setWindowFullscreen(CWindow*, bool, eFullscreenMode); void moveUnmanagedX11ToWindows(CWindow*); CWindow* getX11Parent(CWindow*); + void scheduleFrameForMonitor(SMonitor*); private: void initAllSignals(); -- cgit v1.2.3