mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-07 13:29:55 -05: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
|
|
@ -581,6 +581,10 @@ main(int argc, char *argv[])
|
|||
srandom(tv.tv_usec);
|
||||
|
||||
d = display_create(&argc, &argv, option_entries);
|
||||
if (d == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
display_set_drag_offer_handler(d, drag_offer_handler);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue