c/multi: Do not keep track of current and sent state

This commit is contained in:
Jakob Bornecrantz 2022-09-08 21:03:49 +01:00 committed by Ryan Pavlik
parent b95481ebaa
commit c6aa252796
2 changed files with 5 additions and 13 deletions

View file

@ -116,16 +116,8 @@ struct multi_compositor
struct
{
struct
{
bool visible;
bool focused;
} sent;
struct
{
bool visible;
bool focused;
} current;
bool visible;
bool focused;
int64_t z_order;

View file

@ -502,9 +502,9 @@ system_compositor_set_state(struct xrt_system_compositor *xsc, struct xrt_compos
(void)msc;
//! @todo Locking?
if (mc->state.sent.visible != visible || mc->state.sent.focused != focused) {
mc->state.sent.visible = visible;
mc->state.sent.focused = focused;
if (mc->state.visible != visible || mc->state.focused != focused) {
mc->state.visible = visible;
mc->state.focused = focused;
union xrt_compositor_event xce = {0};
xce.type = XRT_COMPOSITOR_EVENT_STATE_CHANGE;