mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 02:38:01 +02:00
render: fix SIGFPE in addWindowToRenderUnfocused when misc:render_unfocused_fps is 0 (#13973)
This commit is contained in:
parent
29cf6264a2
commit
13fec3de9b
1 changed files with 3 additions and 0 deletions
|
|
@ -2883,6 +2883,9 @@ bool IHyprRenderer::isMgpu() {
|
|||
void IHyprRenderer::addWindowToRenderUnfocused(PHLWINDOW window) {
|
||||
static auto PFPS = CConfigValue<Hyprlang::INT>("misc:render_unfocused_fps");
|
||||
|
||||
if (*PFPS <= 0)
|
||||
return;
|
||||
|
||||
if (std::ranges::find(m_renderUnfocused, window) != m_renderUnfocused.end())
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue