diff options
author | Simon Ser <contact@emersion.fr> | 2020-08-24 10:27:03 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-08-24 07:55:35 -0600 |
commit | 297354f8477285231826f6441b943188ec7d7399 (patch) | |
tree | ee3bacacb6c9170aed28b85ae3ffdee91d8cdac7 /examples/virtual-pointer.c | |
parent | bad1e9afa8ea7d8927c8b4df83d3f277379dd54e (diff) |
Remove unnecessary wl_display_dispatch calls
wl_display_roundtrip already takes care of dispatching the display.
Diffstat (limited to 'examples/virtual-pointer.c')
-rw-r--r-- | examples/virtual-pointer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/virtual-pointer.c b/examples/virtual-pointer.c index 84af7ffd..8fd14830 100644 --- a/examples/virtual-pointer.c +++ b/examples/virtual-pointer.c @@ -67,7 +67,6 @@ int main(int argc, char *argv[]) { struct wl_registry *registry = wl_display_get_registry(display); wl_registry_add_listener(registry, ®istry_listener, NULL); - wl_display_dispatch(display); wl_display_roundtrip(display); if (pointer_manager == NULL) { @@ -132,7 +131,6 @@ int main(int argc, char *argv[]) { zwlr_virtual_pointer_v1_frame(pointer); zwlr_virtual_pointer_v1_destroy(pointer); - wl_display_dispatch(display); return EXIT_SUCCESS; } |