compositor: Allow protocol to be displayed when asked for, even if we're not supplying debug argument

This wasn't intentional it just kept the way it was done before.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Reported-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dev
Marius Vlad 5 years ago
parent abec512883
commit 91dffa37a6
  1. 3
      compositor/main.c

@ -3277,12 +3277,11 @@ wet_main(int argc, char *argv[])
"Wayland protocol dump for all clients.\n", "Wayland protocol dump for all clients.\n",
NULL, NULL, NULL); NULL, NULL, NULL);
if (debug_protocol) {
protologger = wl_display_add_protocol_logger(display, protologger = wl_display_add_protocol_logger(display,
protocol_log_fn, protocol_log_fn,
NULL); NULL);
if (debug_protocol)
weston_compositor_enable_debug_protocol(wet.compositor); weston_compositor_enable_debug_protocol(wet.compositor);
}
weston_compositor_add_debug_binding(wet.compositor, KEY_D, weston_compositor_add_debug_binding(wet.compositor, KEY_D,
flight_rec_key_binding_handler, flight_rec_key_binding_handler,

Loading…
Cancel
Save