Skip to content

Commit

Permalink
steamcompmgr: Add logging for when pipewire focus appid changes
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Sep 10, 2024
1 parent 1bd5bed commit 7d4ff16
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2151,8 +2151,17 @@ static void paint_pipewire()
focus_t *pFocus = nullptr;
if ( ulFocusAppId )
{
static uint64_t s_ulLastFocusAppId = 0;

bool bAppIdChange = ulFocusAppId != s_ulLastFocusAppId;
if ( bAppIdChange )
{
xwm_log.infof( "Exposing appid %lu (%u 32-bit) focus-wise on pipewire stream.", ulFocusAppId, uint32_t( ulFocusAppId ) );
s_ulLastFocusAppId = ulFocusAppId;
}

static focus_t s_PipewireFocus{};
if ( s_PipewireFocus.IsDirty() )
if ( s_PipewireFocus.IsDirty() || bAppIdChange )
{
std::vector<steamcompmgr_win_t *> vecPossibleFocusWindows = GetGlobalPossibleFocusWindows();

Expand Down

0 comments on commit 7d4ff16

Please sign in to comment.