steamcompmgr: Fix build (rebase woes)
This commit is contained in:
parent
32894fa7cd
commit
a8471d81b3
2 changed files with 9 additions and 1 deletions
|
@ -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.
|
// 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)
|
if (!for_current_surface)
|
||||||
{
|
{
|
||||||
wlserver_lock();
|
wlserver_lock();
|
||||||
|
|
|
@ -168,4 +168,12 @@ struct steamcompmgr_win_t {
|
||||||
|
|
||||||
return main_surface();
|
return main_surface();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wlr_surface *override_surface() const
|
||||||
|
{
|
||||||
|
if (type == steamcompmgr_win_type_t::XWAYLAND)
|
||||||
|
return xwayland().surface.override_surface;
|
||||||
|
else
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue