diff options
author | Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> | 2022-04-30 08:54:07 +0200 |
---|---|---|
committer | Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> | 2022-05-04 15:03:26 +0200 |
commit | 6ebbb41822da663bd78f6cea089cb862c05f3a27 (patch) | |
tree | 0ddae673c57c2931c12b6cf0929e386615f2e60f | |
parent | b1006c97511b6e6ed3b92bacab61c42be13f458b (diff) |
Remove unneeded wl_display_flush.
wl_display_dispatch will do flush.
Bug-AGL: SPEC-4347
Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Change-Id: I495e8024dc9a8b10c7aea42281e007018ad83a19
-rw-r--r-- | src/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -30,7 +30,6 @@ #include <assert.h> #include <signal.h> - #include <wayland-client.h> #include <wayland-util.h> #include "agl-shell-desktop-client-protocol.h" @@ -85,7 +84,7 @@ static const struct wl_output_listener output_listener = { }; - static void +static void display_add_output(struct display *display, uint32_t id) { struct window_output *w_output; @@ -200,7 +199,6 @@ destroy_display(struct display *display) free(display); } - static void handler(int sig, siginfo_t *si, void *unused) { @@ -218,7 +216,6 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - sa.sa_flags = SA_SIGINFO; sigemptyset(&sa.sa_mask); sa.sa_sigaction = handler; @@ -235,7 +232,6 @@ int main(int argc, char *argv[]) w_output = wl_container_of(display->output_list.prev, w_output, link); agl_shell_desktop_activate_app(display->agl_shell_desktop, app_id_to_activate, NULL, w_output->output); - wl_display_flush(display->display); while (running && ret != -1) { ret = wl_display_dispatch(display->display); |