Skip to content

Commit

Permalink
steamcompmgr: Fix build (rebase woes)
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Sep 1, 2023
1 parent 32894fa commit a8471d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6096,7 +6096,7 @@ void update_wayland_res(CommitDoneList_t *doneCommits, steamcompmgr_win_t *w, Re
}

// If we have an override surface, make sure this commit is for the current surface.
bool for_current_surface = !w->override_surface || w->current_surface() == reslistentry.surf;
bool for_current_surface = !w->override_surface() || w->current_surface() == reslistentry.surf;
if (!for_current_surface)
{
wlserver_lock();
Expand Down
8 changes: 8 additions & 0 deletions src/steamcompmgr_shared.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,12 @@ struct steamcompmgr_win_t {

return main_surface();
}

wlr_surface *override_surface() const
{
if (type == steamcompmgr_win_type_t::XWAYLAND)
return xwayland().surface.override_surface;
else
return nullptr;
}
};

0 comments on commit a8471d8

Please sign in to comment.