diff options
author | vaxerski <[email protected]> | 2022-10-17 14:01:04 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-10-17 14:01:04 +0100 |
commit | 3f77cde50ed2960447fc8bea41a9a62fa53bead3 (patch) | |
tree | c4a15956090381fd57d5a547e1edc6b2d88d34bb | |
parent | 114565498734ee5ebce62a7e559bd74d5082f772 (diff) | |
download | Hyprland-3f77cde50ed2960447fc8bea41a9a62fa53bead3.tar.gz Hyprland-3f77cde50ed2960447fc8bea41a9a62fa53bead3.zip |
set XCURSOR_SIZE if not set in init
-rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 121e0661..400df7af 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -115,6 +115,9 @@ CCompositor::CCompositor() { m_sWLRXCursorMgr = wlr_xcursor_manager_create(nullptr, 24); wlr_xcursor_manager_load(m_sWLRXCursorMgr, 1); + if (const auto XCURSORENV = getenv("XCURSOR_SIZE"); !XCURSORENV || std::string(XCURSORENV).empty()) + setenv("XCURSOR_SIZE", "24", true); + m_sSeat.seat = wlr_seat_create(m_sWLDisplay, "seat0"); m_sWLRPresentation = wlr_presentation_create(m_sWLDisplay, m_sWLRBackend); |