From 8de8f6667e6a409635c3473824a2e6e0bf70ecf7 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 25 Jun 2022 20:49:06 +0200 Subject: add system info logging --- src/Compositor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index be94c093..9951642b 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -7,6 +7,12 @@ CCompositor::CCompositor() { Debug::log(LOG, "Instance Signature: %s", m_szInstanceSignature.c_str()); + Debug::log(LOG, "===== SYSTEM INFO: ====="); + + logSystemInfo(); + + Debug::log(LOG, "========================"); + setenv("HYPRLAND_INSTANCE_SIGNATURE", m_szInstanceSignature.c_str(), true); const auto INSTANCEPATH = "/tmp/hypr/" + m_szInstanceSignature; -- cgit v1.2.3 From 2c8cf6afc4bfdc1863bcd1e237b5ff55e09b477d Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 25 Jun 2022 21:16:52 +0200 Subject: notify of wiki in case of crashes --- src/Compositor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 9951642b..5fb75f36 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -13,6 +13,10 @@ CCompositor::CCompositor() { Debug::log(LOG, "========================"); + Debug::log(NONE, "\n\n"); // pad + + Debug::log(INFO, "If you are crashing, or encounter any bugs, please consult https://github.com/hyprwm/Hyprland/wiki/Crashing-and-bugs\n\n"); + setenv("HYPRLAND_INSTANCE_SIGNATURE", m_szInstanceSignature.c_str(), true); const auto INSTANCEPATH = "/tmp/hypr/" + m_szInstanceSignature; -- cgit v1.2.3 From 78bf88ba607d0efff0e270bc16562e2081a34037 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Jun 2022 12:12:29 +0200 Subject: Added fullscreen rule --- src/Compositor.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 5fb75f36..a3fd3b93 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1115,4 +1115,18 @@ bool CCompositor::workspaceIDOutOfBounds(const int& id) { } return std::clamp(id, lowestID, highestID) != id; +} + +void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode mode) { + if (!windowValidMapped(pWindow)) + return; + + g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(pWindow, mode, on); + + g_pXWaylandManager->setWindowFullscreen(pWindow, pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL); + // make all windows on the same workspace under the fullscreen window + for (auto& w : g_pCompositor->m_lWindows) { + if (w.m_iWorkspaceID == pWindow->m_iWorkspaceID) + w.m_bCreatedOverFullscreen = false; + } } \ No newline at end of file -- cgit v1.2.3