mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
[fixup] output tracker readability
This commit is contained in:
parent
5004f181bf
commit
ed6172c921
1 changed files with 4 additions and 6 deletions
|
|
@ -86,11 +86,9 @@ handle_output_bind(struct wl_listener *listener, void *data)
|
||||||
sent = true;
|
sent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!sent || !object_output->impl->send_done) {
|
if (sent && object_output->impl->send_done) {
|
||||||
return;
|
object_output->impl->send_done(object_output->object, client);
|
||||||
}
|
}
|
||||||
|
|
||||||
object_output->impl->send_done(object_output->object, client);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Public API */
|
/* Public API */
|
||||||
|
|
@ -142,8 +140,8 @@ output_tracker_enter(void *object, struct wl_list *object_resources,
|
||||||
|
|
||||||
wl_list_insert(&objects, &object_output->link);
|
wl_list_insert(&objects, &object_output->link);
|
||||||
|
|
||||||
bool sent = object_output_send_event(
|
bool sent = object_output_send_event(object_resources,
|
||||||
object_resources, &wlr_output->resources, impl->send_output_enter);
|
&wlr_output->resources, impl->send_output_enter);
|
||||||
|
|
||||||
if (sent && impl->send_done) {
|
if (sent && impl->send_done) {
|
||||||
impl->send_done(object, /*client*/ NULL);
|
impl->send_done(object, /*client*/ NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue