Skip to content

Commit

Permalink
steamcompmgr: Fix enabling VRR from commandline
Browse files Browse the repository at this point in the history
The --adaptive-sync flag is not used during vrr atom update
so it's value get's overwritten with 0 thus disabling the VRR
in the process.
  • Loading branch information
mpawlowski7 authored and misyltoad committed Jun 29, 2023
1 parent 9b70b3b commit 1b9b736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6595,7 +6595,8 @@ void update_vrr_atoms(xwayland_ctx_t *root_ctx, bool force, bool* needs_flush =
// Keep this as a preference, starting with off.
if ( force )
{
uint32_t enabled_value = 0;
bool wants_vrr = g_DRM.wants_vrr_enabled;
uint32_t enabled_value = wants_vrr ? 1 : 0;
XChangeProperty(root_ctx->dpy, root_ctx->root, root_ctx->atoms.gamescopeVRREnabled, XA_CARDINAL, 32, PropModeReplace,
(unsigned char *)&enabled_value, 1 );
if (needs_flush)
Expand Down

0 comments on commit 1b9b736

Please sign in to comment.