diff options
| author | Fernando Ayats <ayatsfer@gmail.com> | 2022-07-08 16:46:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-08 17:46:42 +0300 |
| commit | c8c5e0b90a950bb20c5be5b1c1009889d8540529 (patch) | |
| tree | acd4968949bb8ac6ef4e212503d9609e63c412c1 /src/render/OpenGL.cpp | |
| parent | 84820631579178854db2ed5bce064bcfe8490ed9 (diff) | |
nix: fix wallpaper location (#334)
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 42dcec1a..2647a7fa 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -926,6 +926,9 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(SMonitor* pMonitor) { Debug::log(LOG, "Allocated texture for BGTex"); + // TODO: use relative paths to the installation + // or configure the paths at build time + // check if wallpapers exist if (!std::filesystem::exists("/usr/share/hyprland/wall_8K.png")) return; // the texture will be empty, oh well. We'll clear with a solid color anyways. |
