Skip to content

plugins: make currentWindow available to plugins in RENDER_PRE_WINDOW #10957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

jmanc3
Copy link
Contributor

@jmanc3 jmanc3 commented Jul 7, 2025

I was writing a plugin trying to lock g_pHyprOpenGL->m_renderData.currentWindow inside RENDER_PRE_WINDOW, but it was failing due to it not being set before EMIT_HOOK_EVENT("render", RENDER_PRE_WINDOW) was called.

The fix was to set g_pHyprOpenGL->m_renderData.currentWindow before the hook.

@vaxerski vaxerski merged commit 83c453c into hyprwm:main Jul 7, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants