Skip to content

Commit

Permalink
backend: Fix assigning connector IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Feb 7, 2025
1 parent ef1e8db commit bafa157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ namespace gamescope
private:
void AssignConnectorId()
{
static uint64_t s_ulLastConnectorKey = 0;
m_ulVirtualConnectorKey = ++s_ulLastConnectorKey;
static uint64_t s_ulLastConnectorId = 0;
m_ulConnectorId = ++s_ulLastConnectorId;
}
};

Expand Down

0 comments on commit bafa157

Please sign in to comment.