mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
Handle multiple clients better.
This commit is contained in:
parent
16eb675399
commit
f921289954
5 changed files with 168 additions and 45 deletions
|
|
@ -51,7 +51,6 @@ wl_display_create(const char *address,
|
|||
return NULL;
|
||||
|
||||
memset(display, 0, sizeof *display);
|
||||
display->id = 256; /* Need to get our id-range. */
|
||||
display->fd = socket(PF_LOCAL, SOCK_STREAM, 0);
|
||||
if (display->fd < 0) {
|
||||
free(display);
|
||||
|
|
@ -69,6 +68,10 @@ wl_display_create(const char *address,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* FIXME: We'll need a protocol for getting a new range, I
|
||||
* guess... */
|
||||
read(display->fd, &display->id, sizeof display->id);
|
||||
|
||||
/* FIXME: actually discover advertised objects here. */
|
||||
read(display->fd, &id, sizeof id);
|
||||
read(display->fd, &length, sizeof length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue