Added HyprError for showing config errors
This commit is contained in:
parent
037bad4986
commit
7347a72ba6
8 changed files with 167 additions and 1 deletions
|
|
@ -79,6 +79,10 @@ void CHyprRenderer::renderWorkspaceWithFullscreenWindow(SMonitor* pMonitor, SWor
|
|||
}
|
||||
|
||||
renderDragIcon(pMonitor, time);
|
||||
|
||||
// if correct monitor draw hyprerror
|
||||
if (pMonitor == &g_pCompositor->m_lMonitors.front())
|
||||
g_pHyprError->draw();
|
||||
}
|
||||
|
||||
void CHyprRenderer::renderWindow(CWindow* pWindow, SMonitor* pMonitor, timespec* time, bool decorate) {
|
||||
|
|
@ -178,6 +182,10 @@ void CHyprRenderer::renderAllClientsForMonitor(const int& ID, timespec* time) {
|
|||
}
|
||||
|
||||
renderDragIcon(PMONITOR, time);
|
||||
|
||||
// if correct monitor draw hyprerror
|
||||
if (PMONITOR == &g_pCompositor->m_lMonitors.front())
|
||||
g_pHyprError->draw();
|
||||
}
|
||||
|
||||
void CHyprRenderer::outputMgrApplyTest(wlr_output_configuration_v1* config, bool test) {
|
||||
|
|
|
|||
|
|
@ -19,4 +19,17 @@ CTexture::CTexture(wlr_texture* tex) {
|
|||
}
|
||||
|
||||
m_vSize = Vector2D(tex->width, tex->height);
|
||||
}
|
||||
|
||||
void CTexture::destroyTexture() {
|
||||
if (m_iTexID) {
|
||||
glDeleteTextures(1, &m_iTexID);
|
||||
m_iTexID = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void CTexture::allocate() {
|
||||
if (!m_iTexID) {
|
||||
glGenTextures(1, &m_iTexID);
|
||||
}
|
||||
}
|
||||
|
|
@ -14,6 +14,9 @@ public:
|
|||
CTexture();
|
||||
CTexture(wlr_texture*);
|
||||
|
||||
void destroyTexture();
|
||||
void allocate();
|
||||
|
||||
TEXTURETYPE m_iType = TEXTURE_RGBA;
|
||||
GLenum m_iTarget = GL_TEXTURE_2D;
|
||||
GLuint m_iTexID = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue