aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>2022-04-30 08:54:07 +0200
committerVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>2022-05-04 15:03:26 +0200
commit6ebbb41822da663bd78f6cea089cb862c05f3a27 (patch)
tree0ddae673c57c2931c12b6cf0929e386615f2e60f
parentb1006c97511b6e6ed3b92bacab61c42be13f458b (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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index d669dd1..b15829e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);