Skip to content

Commit cfe50d5

Browse files
author
pinnacle-comp
committed
1 parent 150635c commit cfe50d5

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

main/classes/pinnacle.output.OutputHandle.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,21 @@ Toggles power for this output.
275275

276276

277277

278+
### <Badge type="method" text="method" /> set_vrr
279+
280+
<div class="language-lua"><pre><code>function pinnacle.output.OutputHandle:set_vrr()</code></pre></div>
281+
282+
Sets the variable refresh rate state of this output.
283+
284+
| true # Turns vrr on at all times.
285+
| false # Turns vrr off.
286+
| "on_demand" # Turns vrr on whenever a window with an active vrr demand is visible.
287+
288+
289+
290+
291+
292+
278293
### <Badge type="method" text="method" /> focus
279294

280295
<div class="language-lua"><pre><code>function pinnacle.output.OutputHandle:focus()</code></pre></div>

main/classes/pinnacle.window.WindowHandle.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,22 @@ Window.get_focused():set_tags({ Tag.get("1"), Tag.get("2") })
335335

336336

337337

338+
### <Badge type="method" text="method" /> set_vrr_demand
339+
340+
<div class="language-lua"><pre><code>function pinnacle.window.WindowHandle:set_vrr_demand()</code></pre></div>
341+
342+
Sets this window's vrr demand.
343+
344+
This works in conjunction with an output with an on-demand vrr state.
345+
346+
| "visible" # Turns vrr on on an on-demand vrr output when a window is visible.
347+
| "fullscreen" # Turns vrr on on an on-demand vrr output when a window is both visible *and* fullscreen.
348+
349+
350+
351+
352+
353+
338354
### <Badge type="method" text="method" /> raise
339355

340356
<div class="language-lua"><pre><code>function pinnacle.window.WindowHandle:raise()</code></pre></div>

0 commit comments

Comments
 (0)