mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-30 11:11:05 -04:00
Make clients exit orderly when there is no connection
This commit is contained in:
parent
91b5999ce4
commit
e9f5e36730
7 changed files with 28 additions and 0 deletions
|
|
@ -124,6 +124,10 @@ int main(int argc, char *argv[])
|
|||
struct display *d;
|
||||
|
||||
d = display_create(&argc, &argv, NULL);
|
||||
if (d == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
flower.x = 512;
|
||||
flower.y = 384;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue