hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
573 stars 60 forks source link

Fix 60c5c63 #238

Closed cpiber closed 3 weeks ago

cpiber commented 3 weeks ago

Somehow the last commit only included the changes to hpp, not to cpp, this PR adapts the draw function signature as in that commit. Not sure if other changes are required. It builds at least, except hyprexpo:

overview.cpp: In member function 'void COverview::render()':
overview.cpp:403:91: error: 'Hyprutils::Memory::CSharedPointer<CTexture> CFramebuffer::m_cTex' is private within this context
  403 |             g_pHyprOpenGL->renderTextureInternalWithDamage(images[x + y * SIDE_LENGTH].fb.m_cTex, &texbox, 1.0, &damage);
      |                                                                                           ^~~~~~
/usr/include/hyprland/src/render/Framebuffer.hpp:24:18: note: declared private here
   24 |     SP<CTexture> m_cTex;
      |                  ^~~~~~

The second commit also fixes that (for https://github.com/hyprwm/Hyprland/commit/40081cb330fa838ad9c0a7b87c20b2300ea7fb38)