mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Don't special case object ID 1 lookup
This commit is contained in:
parent
2b6f3cd2b8
commit
990809c063
1 changed files with 1 additions and 4 deletions
|
|
@ -410,10 +410,7 @@ handle_event(struct wl_display *display,
|
||||||
const struct wl_message *message;
|
const struct wl_message *message;
|
||||||
|
|
||||||
wl_connection_copy(display->connection, p, size);
|
wl_connection_copy(display->connection, p, size);
|
||||||
if (id == 1)
|
proxy = wl_map_lookup(&display->objects, id);
|
||||||
proxy = &display->proxy;
|
|
||||||
else
|
|
||||||
proxy = wl_map_lookup(&display->objects, id);
|
|
||||||
|
|
||||||
if (proxy == NULL || proxy->object.implementation == NULL) {
|
if (proxy == NULL || proxy->object.implementation == NULL) {
|
||||||
wl_connection_consume(display->connection, size);
|
wl_connection_consume(display->connection, size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue