Permission Manager: add permission management for screencopy (#9930)

This commit is contained in:
Vaxry 2025-04-08 19:39:53 +02:00 committed by GitHub
parent 642f394eb3
commit 260d8e1f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 481 additions and 32 deletions

View file

@ -2850,6 +2850,8 @@ void CHyprOpenGLImpl::initAssets() {
"unknown"),
CHyprColor{0.9F, 0.9F, 0.9F, 0.7F}, 20, true);
m_pScreencopyDeniedTexture = renderText("Permission denied to share screen", Colors::WHITE, 20);
ensureBackgroundTexturePresence();
}

View file

@ -283,6 +283,8 @@ class CHyprOpenGLImpl {
bool EXT_create_context_robustness = false;
} m_sExts;
SP<CTexture> m_pScreencopyDeniedTexture;
private:
enum eEGLContextVersion : uint8_t {
EGL_CONTEXT_GLES_2_0 = 0,