mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
c/multi: Do not keep track of current and sent state
This commit is contained in:
parent
b95481ebaa
commit
c6aa252796
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue